YARN-1555. Fixed test failures in applicationhistoryservice.* (Vinod Kumar Vavilapalli via mayank)

svn merge --ignore-ancestry -c 1556753 ../YARN-321


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1562207 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Vinod Kumar Vavilapalli 2014-01-28 20:03:42 +00:00
parent a6dfb7b045
commit b6eb90370a
4 changed files with 6 additions and 3 deletions

View File

@ -519,6 +519,9 @@ Branch YARN-321: Generic ApplicationHistoryService
YARN-1413. Implemented serving of aggregated-logs in the ApplicationHistory
server. (Mayank Bansal via vinodkv)
YARN-1555. Fixed test failures in applicationhistoryservice.* (Vinod Kumar
Vavilapalli via mayank)
Release 2.2.0 - 2013-10-13
INCOMPATIBLE CHANGES

View File

@ -86,7 +86,7 @@ public class ApplicationHistoryStoreTestUtils {
throws IOException {
store.containerFinished(
ContainerFinishData.newInstance(containerId, 0, containerId.toString(),
"http://localhost:0/", 0, ContainerState.COMPLETE));
"http://localhost:0/log", 0, ContainerState.COMPLETE));
}
}

View File

@ -40,7 +40,7 @@ public class TestApplicationHistoryServer {
Configuration config = new YarnConfiguration();
historyServer.init(config);
assertEquals(STATE.INITED, historyServer.getServiceState());
assertEquals(3, historyServer.getServices().size());
assertEquals(2, historyServer.getServices().size());
ApplicationHistoryClientService historyService = historyServer
.getClientService();
assertNotNull(historyServer.getClientService());

View File

@ -287,7 +287,7 @@ public class TestAHSWebServices extends JerseyTest {
container.getString("assignedNodeId"));
assertEquals(Priority.newInstance(containerId.getId()).toString(),
container.getString("priority"));
assertEquals("http://localhost:0/", container.getString("logUrl"));
assertEquals("http://localhost:0/log", container.getString("logUrl"));
assertEquals(ContainerState.COMPLETE.toString(),
container.getString("containerState"));
}