[FLINK-7720] [state backends] Centralize creation of backends and state related resources #4745
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change
This PR combines [FLINK-7719] and [FLINK-7720], which are both related to our efforts to introduce task recovery from local state. [FLINK-7719] makes the checkpoint id part of the task deployment descriptior, which is required so that tasks can figure our the right state for local recovery. [FLINK-7720] introduces state manager components on task manager, task, and stream task level that build upon each other. The purpose of them is unifying the creation of state related elements such as backends. State reporting now goes through those state managers.
Brief change log
[FLINK-7719]
[FLINK-7720]
Verifying this change
This change is already covered by existing tests and is currently mostly a refactoring and preparation for future extension. New test cases have been added for implementations of new components. There should currently no observable changes for users.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes)Documentation