Github user shixiaogang commented on the issue:
https://github.com/apache/flink/pull/3524
@StephanEwen I have updated the PR, making the following changes:
1. Add a method called `discardSharedStatesOnFail()` in
`CompositeStateHandle`. This method is called when the pending checkpoint
fails to complete. That way, we do not need to register shared states once an
acknowledge message is received. All shared states are registered only when
the pending checkpoint completes.
2. Add `SharedStateHandle` and refactor `SharedStateRegistry` as suggested.
3. Both registration and unregistration of shared states now are taken
place in `CompletedCheckpoint`.
What do you think of these changes?
---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---