Skip to content

Commit

Permalink
[Improve][CDC][MySQL] Ennable binlog watermark compare (#4293)
Browse files Browse the repository at this point in the history
  • Loading branch information
hailin0 authored Mar 6, 2023
1 parent a55f741 commit b22fb25
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,8 @@ public void execute(FetchTask.Context context) throws Exception {

// optimization that skip the binlog read when the low watermark equals high
// watermark

// TODO make binlogBackfillRequired configable.
// TODO we need store the data in disk to ensure no memory overflow
// final boolean binlogBackfillRequired =
//
// backfillBinlogSplit.getStopOffset().isAfter(backfillBinlogSplit.getStartupOffset());
final boolean binlogBackfillRequired = false;
final boolean binlogBackfillRequired =
backfillBinlogSplit.getStopOffset().isAfter(backfillBinlogSplit.getStartupOffset());
if (!binlogBackfillRequired) {
dispatchBinlogEndEvent(
backfillBinlogSplit,
Expand Down

0 comments on commit b22fb25

Please sign in to comment.