You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: seatunnel-connectors-v2/connector-cdc/connector-cdc-base/src/main/java/org/apache/seatunnel/connectors/cdc/base/source/reader/external/IncrementalSourceScanFetcher.java
Copy file name to clipboardExpand all lines: seatunnel-connectors-v2/connector-cdc/connector-cdc-base/src/main/java/org/apache/seatunnel/connectors/cdc/base/source/reader/external/IncrementalSourceStreamFetcher.java
Copy file name to clipboardExpand all lines: seatunnel-connectors-v2/connector-cdc/connector-cdc-mysql/src/main/java/org/apache/seatunnel/connectors/seatunnel/cdc/mysql/source/offset/BinlogOffset.java
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -176,7 +176,13 @@ public int compareTo(Offset offset) {
176
176
// compared ...
177
177
longtimestamp = this.getTimestamp();
178
178
longtargetTimestamp = that.getTimestamp();
179
-
returnLong.compare(timestamp, targetTimestamp);
179
+
// Timestamps are presupposes that they exist,
180
+
// because timestamps do not exist for low watermark and high watermark.
181
+
// If not judging here results in the really binlog offset comparison to watermark
0 commit comments