Simultaneous incremental scans interfere with each other causing replication to not proceed #1626
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.
Basic Scenario
stream 1
requestsregion 1
.stream 1
starts incremental scan onregion 1
.stream 2
requestsregion 1
.stream 2
starts incremental scan onregion 1
.stream 1
aborts before the scan onregion 1
was finished.stream 2
finishes scanningregion 1
.stream 2
's resolved ts onregion 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.
The text was updated successfully, but these errors were encountered: