YARN-4566. Fix test failure in TestMiniYarnClusterNodeUtilization. (Takashi Ohnishi via rohithsharmaks)
This commit is contained in:
parent
321a80c759
commit
e0b14f26f5
|
@ -236,6 +236,9 @@ Release 2.9.0 - UNRELEASED
|
|||
YARN-4701. When task logs are not available, port 8041 is referenced
|
||||
instead of port 8042 (haibochen via rkanter)
|
||||
|
||||
YARN-4566. Fix test failure in TestMiniYarnClusterNodeUtilization.
|
||||
(Takashi Ohnishi via rohithsharmaks)
|
||||
|
||||
Release 2.8.0 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -214,8 +214,10 @@ public class TestMiniYarnClusterNodeUtilization {
|
|||
// We check if the nodeUtilization is up to date
|
||||
for (int i=0; i<100; i++) {
|
||||
for (RMNode ni : rmContext.getRMNodes().values()) {
|
||||
if (ni.getNodeUtilization().equals(nodeUtilization)) {
|
||||
break;
|
||||
if (ni.getNodeUtilization() != null) {
|
||||
if (ni.getNodeUtilization().equals(nodeUtilization)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Thread.sleep(100);
|
||||
|
|
Loading…
Reference in New Issue