Skip to content

Commit

Permalink
[FLINK-17758][runtime] Remove unused AdaptedRestartPipelinedRegionStr…
Browse files Browse the repository at this point in the history
…ategyNG
  • Loading branch information
zhuzhurk committed May 18, 2020
1 parent a17da14 commit fd051c9
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 1,271 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ public class FailoverStrategyLoader {
/** Config name for the {@link RestartIndividualStrategy}. */
public static final String INDIVIDUAL_RESTART_STRATEGY_NAME = "individual";

/** Config name for the {@link AdaptedRestartPipelinedRegionStrategyNG}. */
public static final String PIPELINED_REGION_RESTART_STRATEGY_NAME = "region";

// ------------------------------------------------------------------------

/**
Expand All @@ -62,9 +59,6 @@ public static FailoverStrategy.Factory loadFailoverStrategy(Configuration config
case FULL_RESTART_STRATEGY_NAME:
return new RestartAllStrategy.Factory();

case PIPELINED_REGION_RESTART_STRATEGY_NAME:
return new AdaptedRestartPipelinedRegionStrategyNG.Factory();

case INDIVIDUAL_RESTART_STRATEGY_NAME:
return new RestartIndividualStrategy.Factory();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.apache.flink.runtime.executiongraph.Execution;
import org.apache.flink.runtime.executiongraph.ExecutionAttemptID;
import org.apache.flink.runtime.executiongraph.ExecutionVertex;
import org.apache.flink.runtime.executiongraph.failover.AdaptedRestartPipelinedRegionStrategyNG;
import org.apache.flink.runtime.executiongraph.failover.FailoverStrategy;
import org.apache.flink.runtime.jobgraph.tasks.CheckpointCoordinatorConfiguration;
import org.apache.flink.runtime.state.SharedStateRegistry;
Expand Down Expand Up @@ -57,8 +56,7 @@ public void setUp() {

/**
* Tests that {@link CheckpointCoordinator#abortPendingCheckpoints(CheckpointException)}
* called by {@link AdaptedRestartPipelinedRegionStrategyNG} could handle
* the {@code currentPeriodicTrigger} null situation well.
* called on job failover could handle the {@code currentPeriodicTrigger} null case well.
*/
@Test
public void testAbortPendingCheckpointsWithTriggerValidation() {
Expand Down
Loading

0 comments on commit fd051c9

Please sign in to comment.