YARN-5318. Fix intermittent test failure of TestRMAdminService#testRefreshNodesResourceWithFileSystemBasedConfigurationProvider. (Jun Gong via Varun Saxena).
This commit is contained in:
parent
8645e4ac3b
commit
845daee463
|
@ -232,6 +232,7 @@ public class TestRMAdminService {
|
||||||
|
|
||||||
rm.adminService.refreshNodesResources(
|
rm.adminService.refreshNodesResources(
|
||||||
RefreshNodesResourcesRequest.newInstance());
|
RefreshNodesResourcesRequest.newInstance());
|
||||||
|
rm.drainEvents();
|
||||||
|
|
||||||
RMNode niAfter = rm.getRMContext().getRMNodes().get(nid);
|
RMNode niAfter = rm.getRMContext().getRMNodes().get(nid);
|
||||||
Resource resourceAfter = niAfter.getTotalCapability();
|
Resource resourceAfter = niAfter.getTotalCapability();
|
||||||
|
|
Loading…
Reference in New Issue