Skip to content

Commit

Permalink
cdc: fixes minor bugs pingcap#10168 and pingcap#10169 (pingcap#10170)
Browse files Browse the repository at this point in the history
  • Loading branch information
hicqu committed Dec 5, 2023
1 parent 645d825 commit 3f6a94c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cdc/processor/sinkmanager/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ var (
maxUpdateIntervalSize = defaultMaxUpdateIntervalSize

// Sink manager schedules table tasks based on lag. Limit the max task range
// can be helpful to reduce changefeed latency.
maxTaskTimeRange = 5 * time.Second
// can be helpful to reduce changefeed latency for large initial data.
maxTaskTimeRange = 30 * time.Minute
)

// Used to record the progress of the table.
Expand Down
2 changes: 1 addition & 1 deletion cdc/processor/sinkmanager/tasks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestValidateAndAdjustBound(t *testing.T) {
StartTs: 439333515018895365,
CommitTs: 439333515018895366,
},
taskTimeRange: 10 * time.Second,
taskTimeRange: 60 * time.Minute,
expectAdjust: true,
},
{
Expand Down

0 comments on commit 3f6a94c

Please sign in to comment.