YARN-5608. TestAMRMClient.setup() fails with ArrayOutOfBoundsException. Contributed by Daniel Templeton.
(cherry picked from commit f9557127b3
)
This commit is contained in:
parent
b082d4b746
commit
c89d462761
|
@ -143,7 +143,12 @@ public static void setup() throws Exception {
|
||||||
yarnClient.start();
|
yarnClient.start();
|
||||||
|
|
||||||
// get node info
|
// get node info
|
||||||
|
assertTrue("All node managers did not connect to the RM within the "
|
||||||
|
+ "allotted 5-second timeout",
|
||||||
|
yarnCluster.waitForNodeManagersToConnect(5000L));
|
||||||
nodeReports = yarnClient.getNodeReports(NodeState.RUNNING);
|
nodeReports = yarnClient.getNodeReports(NodeState.RUNNING);
|
||||||
|
assertEquals("Not all node managers were reported running",
|
||||||
|
nodeCount, nodeReports.size());
|
||||||
|
|
||||||
priority = Priority.newInstance(1);
|
priority = Priority.newInstance(1);
|
||||||
priority2 = Priority.newInstance(2);
|
priority2 = Priority.newInstance(2);
|
||||||
|
|
Loading…
Reference in New Issue