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

Simultaneous incremental scans interfere with each other causing replication to not proceed #1626

Closed
liuzix opened this issue Apr 9, 2021 · 1 comment
Assignees
Labels
area/ticdc Issues or PRs related to TiCDC. component/tikv TiKV component. priority/P0 The issue has P0 priority. severity/critical type/bug The issue is confirmed as a bug.

Comments

@liuzix
Copy link
Contributor

liuzix commented Apr 9, 2021

Basic Scenario

  1. grpc stream 1 requests region 1.
  2. grpc stream 1 starts incremental scan on region 1.
  3. grpc stream 2 requests region 1.
  4. grpc stream 2 starts incremental scan on region 1.
  5. grpc stream 1 aborts before the scan on region 1 was finished.
  6. grpc stream 2 finishes scanning region 1.
  7. grpc stream 2's resolved ts on region 1 fails to proceed.

Cause

TiKV only lets stream 1 track the locks and builds the resolver, which is responsible for calculating the resolved-ts. Since all connections to the same region shares the resolver, failure to build resolver prevents all other connections from receiving resolved-ts.

Implications

Users having multiple changefeeds on the same set of tables are likely to experience replication interruption or delay. The problem manifests itself as both resolved-ts and checkpoint-ts not progressing.

@amyangfei
Copy link
Contributor

This has been fixed

@AkiraXie AkiraXie added the area/ticdc Issues or PRs related to TiCDC. label Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ticdc Issues or PRs related to TiCDC. component/tikv TiKV component. priority/P0 The issue has P0 priority. severity/critical type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

4 participants