|
@@ -499,6 +499,8 @@ public class TestJobImpl {
|
|
// not initializing dispatcher to avoid potential race condition between
|
|
// not initializing dispatcher to avoid potential race condition between
|
|
// the dispatcher thread & test thread - see MAPREDUCE-6831
|
|
// the dispatcher thread & test thread - see MAPREDUCE-6831
|
|
AsyncDispatcher dispatcher = new AsyncDispatcher();
|
|
AsyncDispatcher dispatcher = new AsyncDispatcher();
|
|
|
|
+ dispatcher.init(conf);
|
|
|
|
+
|
|
|
|
|
|
OutputCommitter committer = new StubbedOutputCommitter() {
|
|
OutputCommitter committer = new StubbedOutputCommitter() {
|
|
@Override
|
|
@Override
|
|
@@ -959,6 +961,7 @@ public class TestJobImpl {
|
|
public void testJobPriorityUpdate() throws Exception {
|
|
public void testJobPriorityUpdate() throws Exception {
|
|
Configuration conf = new Configuration();
|
|
Configuration conf = new Configuration();
|
|
AsyncDispatcher dispatcher = new AsyncDispatcher();
|
|
AsyncDispatcher dispatcher = new AsyncDispatcher();
|
|
|
|
+ dispatcher.init(conf);
|
|
Priority submittedPriority = Priority.newInstance(5);
|
|
Priority submittedPriority = Priority.newInstance(5);
|
|
|
|
|
|
AppContext mockContext = mock(AppContext.class);
|
|
AppContext mockContext = mock(AppContext.class);
|