MAPREDUCE-3801: org.apache.hadoop.mapreduce.v2.app.TestRuntimeEstimators.testExponentialEstimator fails intermittently. Contributed by Jason Lowe
This commit is contained in:
parent
f938925bde
commit
2cf8927683
|
@ -100,8 +100,6 @@ public class DefaultSpeculator extends AbstractService implements
|
|||
private AppContext context;
|
||||
private Thread speculationBackgroundThread = null;
|
||||
private volatile boolean stopped = false;
|
||||
private BlockingQueue<SpeculatorEvent> eventQueue
|
||||
= new LinkedBlockingQueue<SpeculatorEvent>();
|
||||
private TaskRuntimeEstimator estimator;
|
||||
|
||||
private BlockingQueue<Object> scanControl = new LinkedBlockingQueue<Object>();
|
||||
|
@ -247,7 +245,7 @@ public class DefaultSpeculator extends AbstractService implements
|
|||
// This section is not part of the Speculator interface; it's used only for
|
||||
// testing
|
||||
public boolean eventQueueEmpty() {
|
||||
return eventQueue.isEmpty();
|
||||
return scanControl.isEmpty();
|
||||
}
|
||||
|
||||
// This interface is intended to be used only for test cases.
|
||||
|
|
Loading…
Reference in New Issue