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