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/source/offset/BinlogOffset.java
+30-33Lines changed: 30 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -186,40 +186,37 @@ public int compareTo(BinlogOffset that) {
186
186
StringtargetGtidSetStr = that.getGtidSet();
187
187
if (StringUtils.isNotEmpty(targetGtidSetStr)) {
188
188
// The target offset uses GTIDs, so we ideally compare using GTIDs ...
189
-
if (StringUtils.isEmpty(gtidSetStr)) {
190
-
// The target offset did use GTIDs while this did not use GTIDs. So, we assume
191
-
// that this offset is older since GTIDs are often enabled but rarely disabled.
192
-
// And if they are disabled,
193
-
// it is likely that this offset would not include GTIDs as we would be trying
194
-
// to read the binlog of a
195
-
// server that no longer has GTIDs. And if they are enabled, disabled, and
0 commit comments