Github user StephanEwen commented on a diff in the pull request:
https://github.com/apache/flink/pull/5248#discussion_r160758717
--- Diff:
flink-runtime/src/main/java/org/apache/flink/runtime/state/StateBackend.java ---
@@ -84,13 +84,44 @@
public interface StateBackend extends java.io.Serializable {
//
------------------------------------------------------------------------
- // Persistent Bytes Storage
+ // Checkpoint storage - the durable persistence of checkpoint data
--- End diff --
Agreed. In the end we have:
- `CheckpointStorage`: Persisting bytes and Metadata. The Stream
factories should go there in the next part of the rework.
- `KeyedStateBackend`: Holding / snapshotting keyed state
- `OperatorStateBackend`: Holding / snapshotting operator state
These should be three completely independent interfaces, and this PR moves
towards that by introducing the `CheckpointStorage`, even though it does not
yet move the Stream Factories there.
Once the rework is done, the `StateBackend` just bundles a combination is
the three above components (should have only three methods, maybe convenience
overload).
---