Skip to content

Commit 9004b13

Browse files
committed
datavane/tis#463 将isAfter()代码改回isAtOrAfter(),不然 stop之后再 恢复之后 就不会消费最新的更新消息了
1 parent fdce05f commit 9004b13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flink-cdc-connect/flink-cdc-source-connectors/flink-connector-mysql-cdc/src/main/java/org/apache/flink/cdc/connectors/mysql/debezium/reader/BinlogSplitReader.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ private boolean shouldEmit(SourceRecord sourceRecord) {
292292
private boolean hasEnterPureBinlogPhase(TableId tableId, BinlogOffset position) {
293293
// the existed tables those have finished snapshot reading
294294
if (maxSplitHighWatermarkMap.containsKey(tableId)
295-
&& position.isAfter(maxSplitHighWatermarkMap.get(tableId))) {
295+
// 百岁(baisui) 修改2025/07/27 将代码改回去了,不然 stop之后再 恢复之后 就不会消费最新的更新消息了,https://github.com/datavane/tis/issues/463
296+
&& position.isAtOrAfter(maxSplitHighWatermarkMap.get(tableId))) {
296297
pureBinlogPhaseTables.add(tableId);
297298
return true;
298299
}

0 commit comments

Comments
 (0)