|
@@ -435,7 +435,8 @@ public class TestHsWebServicesTasks extends JerseyTest {
|
|
|
String type = exception.getString("exception");
|
|
|
String classname = exception.getString("javaClassName");
|
|
|
WebServicesTestUtils.checkStringMatch("exception message",
|
|
|
- "java.lang.Exception: Error parsing task ID: bogustaskid", message);
|
|
|
+ "java.lang.Exception: TaskId string : "
|
|
|
+ + "bogustaskid is not properly formed", message);
|
|
|
WebServicesTestUtils.checkStringMatch("exception type",
|
|
|
"NotFoundException", type);
|
|
|
WebServicesTestUtils.checkStringMatch("exception classname",
|
|
@@ -450,7 +451,7 @@ public class TestHsWebServicesTasks extends JerseyTest {
|
|
|
Map<JobId, Job> jobsMap = appContext.getAllJobs();
|
|
|
for (JobId id : jobsMap.keySet()) {
|
|
|
String jobId = MRApps.toString(id);
|
|
|
- String tid = "task_1234_0_0_m_0";
|
|
|
+ String tid = "task_0_0000_m_000000";
|
|
|
try {
|
|
|
r.path("ws").path("v1").path("history").path("mapreduce").path("jobs")
|
|
|
.path(jobId).path("tasks").path(tid).get(JSONObject.class);
|
|
@@ -466,7 +467,7 @@ public class TestHsWebServicesTasks extends JerseyTest {
|
|
|
String type = exception.getString("exception");
|
|
|
String classname = exception.getString("javaClassName");
|
|
|
WebServicesTestUtils.checkStringMatch("exception message",
|
|
|
- "java.lang.Exception: task not found with id task_1234_0_0_m_0",
|
|
|
+ "java.lang.Exception: task not found with id task_0_0000_m_000000",
|
|
|
message);
|
|
|
WebServicesTestUtils.checkStringMatch("exception type",
|
|
|
"NotFoundException", type);
|
|
@@ -482,7 +483,7 @@ public class TestHsWebServicesTasks extends JerseyTest {
|
|
|
Map<JobId, Job> jobsMap = appContext.getAllJobs();
|
|
|
for (JobId id : jobsMap.keySet()) {
|
|
|
String jobId = MRApps.toString(id);
|
|
|
- String tid = "task_1234_0_0_d_0";
|
|
|
+ String tid = "task_0_0000_d_000000";
|
|
|
try {
|
|
|
r.path("ws").path("v1").path("history").path("mapreduce").path("jobs")
|
|
|
.path(jobId).path("tasks").path(tid).get(JSONObject.class);
|
|
@@ -498,7 +499,8 @@ public class TestHsWebServicesTasks extends JerseyTest {
|
|
|
String type = exception.getString("exception");
|
|
|
String classname = exception.getString("javaClassName");
|
|
|
WebServicesTestUtils.checkStringMatch("exception message",
|
|
|
- "java.lang.Exception: Unknown task symbol: d", message);
|
|
|
+ "java.lang.Exception: Bad TaskType identifier. TaskId string : "
|
|
|
+ + "task_0_0000_d_000000 is not properly formed.", message);
|
|
|
WebServicesTestUtils.checkStringMatch("exception type",
|
|
|
"NotFoundException", type);
|
|
|
WebServicesTestUtils.checkStringMatch("exception classname",
|
|
@@ -513,7 +515,7 @@ public class TestHsWebServicesTasks extends JerseyTest {
|
|
|
Map<JobId, Job> jobsMap = appContext.getAllJobs();
|
|
|
for (JobId id : jobsMap.keySet()) {
|
|
|
String jobId = MRApps.toString(id);
|
|
|
- String tid = "task_1234_0_m_0";
|
|
|
+ String tid = "task_0000_m_000000";
|
|
|
try {
|
|
|
r.path("ws").path("v1").path("history").path("mapreduce").path("jobs")
|
|
|
.path(jobId).path("tasks").path(tid).get(JSONObject.class);
|
|
@@ -529,7 +531,8 @@ public class TestHsWebServicesTasks extends JerseyTest {
|
|
|
String type = exception.getString("exception");
|
|
|
String classname = exception.getString("javaClassName");
|
|
|
WebServicesTestUtils.checkStringMatch("exception message",
|
|
|
- "java.lang.Exception: For input string: \"m\"", message);
|
|
|
+ "java.lang.Exception: TaskId string : "
|
|
|
+ + "task_0000_m_000000 is not properly formed", message);
|
|
|
WebServicesTestUtils.checkStringMatch("exception type",
|
|
|
"NotFoundException", type);
|
|
|
WebServicesTestUtils.checkStringMatch("exception classname",
|
|
@@ -544,7 +547,7 @@ public class TestHsWebServicesTasks extends JerseyTest {
|
|
|
Map<JobId, Job> jobsMap = appContext.getAllJobs();
|
|
|
for (JobId id : jobsMap.keySet()) {
|
|
|
String jobId = MRApps.toString(id);
|
|
|
- String tid = "task_1234_0_0_m";
|
|
|
+ String tid = "task_0_0000_m";
|
|
|
try {
|
|
|
r.path("ws").path("v1").path("history").path("mapreduce").path("jobs")
|
|
|
.path(jobId).path("tasks").path(tid).get(JSONObject.class);
|
|
@@ -560,8 +563,8 @@ public class TestHsWebServicesTasks extends JerseyTest {
|
|
|
String type = exception.getString("exception");
|
|
|
String classname = exception.getString("javaClassName");
|
|
|
WebServicesTestUtils.checkStringMatch("exception message",
|
|
|
- "java.lang.Exception: Error parsing task ID: task_1234_0_0_m",
|
|
|
- message);
|
|
|
+ "java.lang.Exception: TaskId string : "
|
|
|
+ + "task_0_0000_m is not properly formed", message);
|
|
|
WebServicesTestUtils.checkStringMatch("exception type",
|
|
|
"NotFoundException", type);
|
|
|
WebServicesTestUtils.checkStringMatch("exception classname",
|