flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shixiaogang <...@git.apache.org>
Subject [GitHub] flink issue #3524: [FLINK-6014][checkpoint] Allow the registration of state ...
Date Fri, 24 Mar 2017 07:48:53 GMT
Github user shixiaogang commented on the issue:

    @StephanEwen I have updated the PR as suggested. Changes include
    1. Make `StateRegistry` to be `SharedStateRegistry` where only shared states are registered.
Now the `discardState()` method is supposed to delete those private states in the checkpoint.
    2. `SharedStateRegistry` now is deployed by the `CheckpointCoordinator`. The state handle
will register its shared states once it is received by the coordinator. In another words,
all shared states in a completed checkpoint are registered when the checkpoint is added into
the `CompletedCheckpointStore`.  All checkpoints (including savepoints) will unregister shared
states when they are removed from the store. Savepoints should not contain any shared state.
Therefore the unregistration will not discard any state in the savepoints.
    3. When recovering from failures or restarting from a savepoint, the `CheckpointCoordinator`
will rebuild the registry with the checkpoints recovered in the `CompletedCheckpointStore`.
    4. Related tests are added to ensure correctness.
    5. The conflicts with the master branch are resolved.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message