aljoscha commented on a change in pull request #12189: URL: https://github.com/apache/flink/pull/12189#discussion_r426572441
########## File path: flink-connectors/flink-connector-filesystem/src/main/java/org/apache/flink/streaming/connectors/fs/bucketing/BucketingSink.java ########## @@ -388,7 +389,7 @@ public void initializeState(FunctionInitializationContext context) throws Except } OperatorStateStore stateStore = context.getOperatorStateStore(); - restoredBucketStates = stateStore.getSerializableListState("bucket-states"); + this.restoredBucketStates = stateStore.getListState(new ListStateDescriptor("bucket-states", State.class)); Review comment: This will not actually work because `getListState(..., State.class)` should be created a `GenericTypeInfo`, which is incompatible with the `JavaSerializer` used before internally here. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org