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

View File

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