aloyszhang commented on code in PR #10622:
URL: https://github.com/apache/inlong/pull/10622#discussion_r1677270494
##########
inlong-sort/sort-flink/sort-flink-v1.15/sort-connectors/mongodb-cdc/src/main/java/org/apache/inlong/sort/mongodb/DebeziumSourceFunction.java:
##########
@@ -312,6 +312,19 @@ public void snapshotState(FunctionSnapshotContext
functionSnapshotContext) throw
snapshotOffsetState(functionSnapshotContext.getCheckpointId());
snapshotHistoryRecordsState();
}
+ if (deserializer instanceof MongoDBConnectorDeserializationSchema) {
+ ((MongoDBConnectorDeserializationSchema) deserializer)
+
.updateCurrentCheckpointId(functionSnapshotContext.getCheckpointId());
+ }
+ }
+
+ @Override
+ public void notifyCheckpointAborted(long checkpointId) {
Review Comment:
Why flush the audit information when a checkpoint is aborted?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]