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: flink-cdc-connect/flink-cdc-source-connectors/flink-connector-mysql-cdc/src/main/java/org/apache/flink/cdc/connectors/mysql/debezium/reader/BinlogSplitReader.java
Copy file name to clipboardExpand all lines: flink-cdc-connect/flink-cdc-source-connectors/flink-connector-mysql-cdc/src/main/java/org/apache/flink/cdc/connectors/mysql/debezium/task/MySqlSnapshotSplitReadTask.java
Copy file name to clipboardExpand all lines: flink-cdc-connect/flink-cdc-source-connectors/flink-connector-mysql-cdc/src/main/java/org/apache/flink/cdc/connectors/mysql/source/offset/BinlogOffset.java
+4-7
Original file line number
Diff line number
Diff line change
@@ -232,7 +232,9 @@ public int compareTo(BinlogOffset that) {
232
232
// compared ...
233
233
longtimestamp = this.getTimestampSec();
234
234
longtargetTimestamp = that.getTimestampSec();
235
-
returnLong.compare(timestamp, targetTimestamp);
235
+
if (timestamp != 0 && targetTimestamp != 0) {
236
+
returnLong.compare(timestamp, targetTimestamp);
237
+
}
236
238
}
237
239
238
240
// First compare the MySQL binlog filenames
@@ -251,12 +253,7 @@ public int compareTo(BinlogOffset that) {
251
253
}
252
254
253
255
// The completed events are the same, so compare the row number ...
254
-
if (this.getRestartSkipRows() != that.getRestartSkipRows()) {
0 commit comments