[
https://issues.apache.org/jira/browse/FLINK-10712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16673402#comment-16673402
]
ASF GitHub Bot commented on FLINK-10712:
----------------------------------------
Myasuka opened a new pull request #7009: [FLINK-10712] Support to restore state
when using RestartPipelinedRegionStrategy
URL: https://github.com/apache/flink/pull/7009
## What is the purpose of the change
Currently, RestartPipelinedRegionStrategy does not perform any state
restore. This is big problem because all restored regions will be restarted
with empty state. This PR supports to restore state when using
RestartPipelinedRegionStrategy.
## Brief change log
- Implement new `restoreLatestCheckpointedState` API for region-based
failover in `CheckpointCoordinator`.
- Reload checkpointed state when `FailoverRegion` called `restart` method.
- `StateAssignmentOperation` could assign state with given
executionVertices.
## Verifying this change
This change added tests and can be verified as follows:
- Added unit tests for `FailoverRegion` to ensure the failover region ever
called new `restoreLatestCheckpointedState` API within `CheckpointCoordinator`.
- Added unit tests for `CheckpointCoordinatorTest` to ensure
`CheckpointCoordinator` could restore with `RestartPipelinedRegionStrategy`.
- Added unit tests for `CheckpointStateRestoreTest` to ensure
`RestartPipelinedRegionStrategy` could handle well when restoring state from a
checkpoint to the task executions.
- Added new integration test `RegionFailoverITCase` to verify state could
be restored properly when the job consists multi regions.
- Refactored `StreamFaultToleranceTestBase` to let all sub-classes ITs
could failover with state using RestartPipelinedRegionStrategy.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): no
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: no
- The serializers: no
- The runtime per-record code paths (performance sensitive): don't know
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Yarn/Mesos, ZooKeeper: no
- The S3 file system connector: no
## Documentation
- Does this pull request introduce a new feature? yes
- If yes, how is the feature documented? JavaDocs
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> RestartPipelinedRegionStrategy does not restore state
> -----------------------------------------------------
>
> Key: FLINK-10712
> URL: https://issues.apache.org/jira/browse/FLINK-10712
> Project: Flink
> Issue Type: Bug
> Components: Distributed Coordination
> Affects Versions: 1.3.3, 1.4.2, 1.5.5, 1.6.2, 1.7.0
> Reporter: Stefan Richter
> Assignee: Yun Tang
> Priority: Critical
> Labels: pull-request-available
> Fix For: 1.7.0
>
>
> RestartPipelinedRegionStrategy does not perform any state restore. This is
> big problem because all restored regions will be restarted with empty state.
> We need to take checkpoints into account when restoring.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)