Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
import org.apache.flink.runtime.scheduler.SchedulerBase;
import org.apache.flink.runtime.scheduler.SchedulerTestingUtils;
import org.apache.flink.runtime.taskmanager.TaskExecutionState;
import org.apache.flink.runtime.testutils.DirectScheduledExecutorService;
import org.apache.flink.runtime.util.stats.StatsSummarySnapshot;
import org.apache.flink.streaming.util.RestartStrategyUtils;
import org.apache.flink.testutils.TestingUtils;
import org.apache.flink.testutils.executor.TestExecutorExtension;

import org.junit.jupiter.api.BeforeAll;
Expand All @@ -57,7 +57,6 @@
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.ScheduledExecutorService;
import java.util.function.Function;

import static java.util.Arrays.asList;
Expand All @@ -66,9 +65,13 @@
/** Tests for the {@link ArchivedExecutionGraph}. */
public class ArchivedExecutionGraphTest {

/**
* Runs the deployment callbacks inline, so they cannot race startScheduling() on another thread
* (FLINK-40682).
*/
@RegisterExtension
static final TestExecutorExtension<ScheduledExecutorService> EXECUTOR_RESOURCE =
TestingUtils.defaultExecutorExtension();
static final TestExecutorExtension<DirectScheduledExecutorService> EXECUTOR_RESOURCE =
new TestExecutorExtension<>(DirectScheduledExecutorService::new);

private static ExecutionGraph runtimeGraph;

Expand Down