YARN-9325. TestQueueManagementDynamicEditPolicy fails intermittent. Contributed by Prabhu Joseph.
(cherry picked from commit 1c8046d67ec10710e7749ed1929b09fac4b1ba94)
This commit is contained in:
parent
28ff96f367
commit
cc0c85f04a
@ -118,7 +118,7 @@ private void waitForPolicyState(float expectedVal,
|
||||
nodeLabel, int timesec) throws InterruptedException {
|
||||
long start = System.currentTimeMillis();
|
||||
while (System.currentTimeMillis() - start < timesec * 1000) {
|
||||
if (Float.compare(expectedVal, queueManagementPolicy
|
||||
if (Math.abs(expectedVal - queueManagementPolicy
|
||||
.getAbsoluteActivatedChildQueueCapacity(nodeLabel)) > EPSILON) {
|
||||
Thread.sleep(100);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user