YARN-6331. Fix flakiness in TestFairScheduler#testDumpState. (Yufei Gu via rchiang)

This commit is contained in:
Ray Chiang 2017-03-14 14:37:18 -07:00
parent fa67a96d7b
commit 4c66a8d19b
1 changed files with 2 additions and 1 deletions

View File

@ -5201,6 +5201,7 @@ public class TestFairScheduler extends FairSchedulerTestBase {
FSParentQueue parent =
scheduler.getQueueManager().getParentQueue("parent", false);
parent.setMaxShare(resource);
parent.updateDemand();
String parentQueueString = "{Name: root.parent,"
+ " Weight: <memory weight=1.0, cpu weight=1.0>,"
@ -5210,7 +5211,7 @@ public class TestFairScheduler extends FairSchedulerTestBase {
+ " MaxShare: <memory:4096, vCores:4>,"
+ " MinShare: <memory:0, vCores:0>,"
+ " ResourceUsage: <memory:4096, vCores:4>,"
+ " Demand: <memory:0, vCores:0>,"
+ " Demand: <memory:4096, vCores:4>,"
+ " MaxAMShare: 0.5,"
+ " Runnable: 0}";