Zakelly commented on code in PR #24676: URL: https://github.com/apache/flink/pull/24676#discussion_r1571777947
########## flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/asyncprocessing/AbstractAsyncStateStreamOperator.java: ########## @@ -133,6 +136,20 @@ public final <T> ThrowingConsumer<StreamRecord<T>, Exception> getRecordProcessor getClass().getName(), inputId)); } + @Override + public final OperatorSnapshotFutures snapshotState( + long checkpointId, + long timestamp, + CheckpointOptions checkpointOptions, + CheckpointStreamFactory factory) + throws Exception { + asyncExecutionController.drainInflightRecords(0); Review Comment: Ah... almost forget. Should we check `isAsyncStateProcessingEnabled` first? -- 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. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org