Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sink task range seems too short to stuck the sink #10169

Closed
hicqu opened this issue Nov 28, 2023 · 0 comments · Fixed by #10170
Closed

Sink task range seems too short to stuck the sink #10169

hicqu opened this issue Nov 28, 2023 · 0 comments · Fixed by #10170
Labels
affects-6.5 affects-7.1 affects-7.5 area/ticdc Issues or PRs related to TiCDC. severity/minor type/bug The issue is confirmed as a bug.

Comments

@hicqu
Copy link
Contributor

hicqu commented Nov 28, 2023

What did you do?

Currently in TiCDC component SinkManager, a sink task is limited to only cover time ranges less than 5s.

What did you expect to see?

This behavior is expected to make tables more balance.

What did you see instead?

However, 5s seems is too short. Please consider this case:

  • there are 50K+ tables on a TiCDC instance;
  • TiCDC CPU usage is almost full;

So a table can be scheduled with an interval more than 5s. Then checkpoint lag will keep increasing.
It's not expected. We should correct it.

Versions of the cluster

Upstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):

(paste TiDB cluster version here)

Upstream TiKV version (execute tikv-server --version):

(paste TiKV version here)

TiCDC version (execute cdc version):

(paste TiCDC version here)
@hicqu hicqu added type/bug The issue is confirmed as a bug. area/ticdc Issues or PRs related to TiCDC. severity/minor labels Nov 28, 2023
ti-chi-bot bot pushed a commit that referenced this issue Nov 29, 2023
hicqu added a commit to hicqu/ticdc that referenced this issue Nov 29, 2023
Signed-off-by: qupeng <qupeng@pingcap.com>
hicqu added a commit to hicqu/ticdc that referenced this issue Nov 29, 2023
Signed-off-by: qupeng <qupeng@pingcap.com>
hicqu added a commit to ti-chi-bot/tiflow that referenced this issue Nov 30, 2023
Signed-off-by: qupeng <qupeng@pingcap.com>
hicqu added a commit to hicqu/ticdc that referenced this issue Dec 2, 2023
Signed-off-by: qupeng <qupeng@pingcap.com>
hicqu added a commit to hicqu/ticdc that referenced this issue Dec 2, 2023
Signed-off-by: qupeng <qupeng@pingcap.com>
hicqu added a commit to ti-chi-bot/tiflow that referenced this issue Dec 4, 2023
close pingcap#10168

Signed-off-by: qupeng <qupeng@pingcap.com>
ti-chi-bot bot pushed a commit that referenced this issue Dec 4, 2023
ti-chi-bot bot pushed a commit that referenced this issue Dec 4, 2023
hicqu added a commit to hicqu/ticdc that referenced this issue Dec 5, 2023
hicqu added a commit that referenced this issue Dec 5, 2023
* cdc: fixes minor bugs #10168 and #10169 (#10170)
* puller(cdc): debug frontier (#10202)
* kv-client(cdc): correct conditions of canceling grpc streams  (#10237)

Signed-off-by: qupeng <qupeng@pingcap.com>
ti-chi-bot bot pushed a commit that referenced this issue Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.5 affects-7.1 affects-7.5 area/ticdc Issues or PRs related to TiCDC. severity/minor type/bug The issue is confirmed as a bug.
Projects
Development

Successfully merging a pull request may close this issue.

1 participant