YARN-5069. TestFifoScheduler.testResourceOverCommit race condition. Contributed by Eric Badger.
This commit is contained in:
parent
576e2d1278
commit
1217c8f6b4
@ -1140,7 +1140,8 @@ public void testResourceOverCommit() throws Exception {
|
|||||||
waitCount = 0;
|
waitCount = 0;
|
||||||
while (waitCount++ != 20) {
|
while (waitCount++ != 20) {
|
||||||
report_nm1 = rm.getResourceScheduler().getNodeReport(nm1.getNodeId());
|
report_nm1 = rm.getResourceScheduler().getNodeReport(nm1.getNodeId());
|
||||||
if (report_nm1.getAvailableResource().getMemory() != 0) {
|
if (null != report_nm1 &&
|
||||||
|
report_nm1.getAvailableResource().getMemory() != 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
LOG.info("Waiting for RMNodeResourceUpdateEvent to be handled... Tried "
|
LOG.info("Waiting for RMNodeResourceUpdateEvent to be handled... Tried "
|
||||||
|
Loading…
Reference in New Issue
Block a user