Github user shixiaogang commented on a diff in the pull request:
https://github.com/apache/flink/pull/3870#discussion_r116161754
--- Diff:
flink-contrib/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBKeyedStateBackend.java
---
@@ -922,6 +940,39 @@ void releaseResources(boolean canceled) {
}
}
}
+
+ /**
+ * A placeholder state handle for shared state that will
replaced by an original that was
+ * created in a previous checkpoint. So we don't have to send
the handle twice, e.g. in
+ * case of {@link ByteStreamStateHandle}.
+ */
+ private static final class PlaceholderStreamStateHandle
implements StreamStateHandle {
--- End diff --
I think we can move `PlaceholderStreamStateHandle` out so that it can be
used by other state backends. What do you think?
---
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 [email protected] or file a JIRA ticket
with INFRA.
---