YARN-10515. Fix flaky test TestCapacitySchedulerAutoQueueCreation.testDynamicAutoQueueCreationWithTags. Contributed by Peter Bacsko
This commit is contained in:
parent
1ccba3734d
commit
8620984b8d
@ -52,6 +52,7 @@
|
||||
import org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMApp;
|
||||
import org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppEventType;
|
||||
import org.apache.hadoop.yarn.server.resourcemanager.scheduler.ContainerUpdates;
|
||||
import org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics;
|
||||
import org.apache.hadoop.yarn.server.resourcemanager.scheduler
|
||||
.ResourceScheduler;
|
||||
|
||||
@ -205,6 +206,7 @@ void spyOnNextEvent(Event expectedEvent, long timeout)
|
||||
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
QueueMetrics.clearQueueMetrics();
|
||||
CapacitySchedulerConfiguration conf = setupSchedulerConfiguration();
|
||||
setupQueueConfiguration(conf);
|
||||
conf.setClass(YarnConfiguration.RM_SCHEDULER, CapacityScheduler.class,
|
||||
|
Loading…
Reference in New Issue
Block a user