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

TiCDC does not resolve lock in time #2867

Closed
overvenus opened this issue Sep 22, 2021 · 4 comments
Closed

TiCDC does not resolve lock in time #2867

overvenus opened this issue Sep 22, 2021 · 4 comments
Assignees
Labels
affects-4.0 affects-5.0 affects-5.1 affects-5.2 area/ticdc Issues or PRs related to TiCDC. component/kv-client TiKV kv log client component. difficulty/medium Medium task. severity/major type/bug The issue is confirmed as a bug.

Comments

@overvenus
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

  • What did you do? If possible, provide a recipe for reproducing the error.
  1. Create table A and B. Create a changefeed that captures A.
  2. Kill TiDB instances and leave some locks in B.
  3. Wait 10 minutes.
  4. Merge regions a (belongs table A) and region b (belongs table B).
  • What did you expect to see?

Changefeed is not blocked and locks in B can be resolved by TiCDC.

  • What did you see instead?

Changefeed is blocked. And lots of fallen back logs.

[2021/09/17 09:57:25.081 +08:00] [WARN] [region_worker.go:690] ["The resolvedTs is fallen back in kvclient"] ["Event Type"=RESOLVED] [resolvedTs=427759786830332014] [lastResolvedTs=427767830928687109] [regionID=478066658]

Also, we see TiKV resolved ts jump, because of region merge.

image

  • Versions of the cluster

    v5.1.1

@overvenus overvenus added type/bug The issue is confirmed as a bug. component/kv-client TiKV kv log client component. difficulty/medium Medium task. labels Sep 22, 2021
@amyangfei
Copy link
Contributor

Whether there exists resolve lock log for regionID=478066658? @overvenus

@amyangfei
Copy link
Contributor

Besides, whether kv client reconnect triggered happens?

@overvenus
Copy link
Member Author

Whether there exists resolve lock log for regionID=478066658? @overvenus

No.

whether kv client reconnect

No.

@maxshuang
Copy link
Contributor

@overvenus why need to wait 10 min? If tidb instance down, prewrite lock can be gc in no situation? so we don't need to wait?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-4.0 affects-5.0 affects-5.1 affects-5.2 area/ticdc Issues or PRs related to TiCDC. component/kv-client TiKV kv log client component. difficulty/medium Medium task. severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

5 participants