XiaoYou201 commented on code in PR #10622:
URL: https://github.com/apache/inlong/pull/10622#discussion_r1677284804
##########
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:
Sorry~, it should be add in notifyCheckpointComplete(). thx review ~
fix it.
--
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]