Github user uce commented on a diff in the pull request:
https://github.com/apache/flink/pull/3346#discussion_r101761879
--- Diff:
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/AbstractStreamOperator.java
---
@@ -431,11 +436,12 @@ public void snapshotState(StateSnapshotContext
context) throws Exception {
@SuppressWarnings("deprecation")
@Deprecated
@Override
- public StreamStateHandle snapshotLegacyOperatorState(long checkpointId,
long timestamp) throws Exception {
+ public StreamStateHandle snapshotLegacyOperatorState(long checkpointId,
long timestamp, CheckpointOptions checkpointOptions) throws Exception {
if (this instanceof StreamCheckpointedOperator) {
+ CheckpointStreamFactory factory =
getCheckpointStreamFactory(checkpointOptions);
--- End diff --
Here we create the factory again for legacy state. As an alternative, we
would have to create the factory in the `StreamTask` and pass it to the
snapshot call here.
---
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.
---