提交 0abab7e6 编写于 作者: Z Zhu Zhu

Revert "Fixup! [FLINK-16276][tests] Introduce a builder and factory methods to...

Revert "Fixup! [FLINK-16276][tests] Introduce a builder and factory methods to create DefaultScheduler for testing"

This reverts commit 622bd31a.
上级 622bd31a
......@@ -66,7 +66,7 @@ import org.apache.flink.runtime.shuffle.NettyShuffleMaster;
import org.apache.flink.runtime.shuffle.ShuffleMaster;
import org.apache.flink.runtime.taskexecutor.TaskExecutorOperatorEventGateway;
import org.apache.flink.runtime.taskmanager.TaskExecutionState;
import org.apache.flink.runtime.testingUtils.TestingUtils;
import org.apache.flink.runtime.testutils.DirectScheduledExecutorService;
import org.apache.flink.util.SerializedValue;
import org.slf4j.Logger;
......@@ -278,11 +278,11 @@ public class SchedulerTestingUtils {
private Logger log = LOG;
private BackPressureStatsTracker backPressureStatsTracker = VoidBackPressureStatsTracker.INSTANCE;
private Executor ioExecutor = TestingUtils.defaultExecutor();
private Executor ioExecutor = java.util.concurrent.Executors.newSingleThreadExecutor();
private Configuration jobMasterConfiguration = new Configuration();
private ScheduledExecutorService futureExecutor = TestingUtils.defaultExecutor();
private ScheduledExecutorService futureExecutor = new DirectScheduledExecutorService();
private ScheduledExecutor delayExecutor = new ScheduledExecutorServiceAdapter(futureExecutor);
private ClassLoader userCodeLoader = ClassLoader.getSystemClassLoader();
private ClassLoader userCodeLoader = getClass().getClassLoader();
private CheckpointRecoveryFactory checkpointRecoveryFactory = new StandaloneCheckpointRecoveryFactory();
private Time rpcTimeout = DEFAULT_TIMEOUT;
private BlobWriter blobWriter = VoidBlobWriter.getInstance();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册