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

fallback resolvedTs event skips the lock resolving unexpectly #3061

Closed
Tracked by #2872
maxshuang opened this issue Oct 14, 2021 · 0 comments · Fixed by #3062
Closed
Tracked by #2872

fallback resolvedTs event skips the lock resolving unexpectly #3061

maxshuang opened this issue Oct 14, 2021 · 0 comments · Fixed by #3062
Assignees
Labels
area/ticdc Issues or PRs related to TiCDC. component/kv-client TiKV kv log client component. severity/moderate type/bug The issue is confirmed as a bug.

Comments

@maxshuang
Copy link
Contributor

maxshuang commented Oct 14, 2021

This bug is caused by following reason:
(1) when region merge occur, a new stream with new region_worker will be created. Then region_worker.rtsManager will be empty;
(2) if merged region has some fallback prewrite lock in it, the resolvedTs event will fall back last checkpointTs and will be ignored. Then resolve lock logic can't trigger for region_worker.rtsManager has no record for that region.

@maxshuang maxshuang changed the title Also use sinceLastEvent as a check condition for lock resolving fallback resolvedTs event skips the lock resolving unexpectly Oct 14, 2021
@maxshuang maxshuang self-assigned this Oct 15, 2021
@maxshuang maxshuang added severity/moderate type/bug The issue is confirmed as a bug. component/kv-client TiKV kv log client component. labels Oct 15, 2021
maxshuang pushed a commit that referenced this issue Oct 16, 2021
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this issue Oct 19, 2021
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this issue Oct 19, 2021
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this issue Oct 19, 2021
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this issue Oct 19, 2021
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this issue Oct 19, 2021
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this issue Oct 19, 2021
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this issue Oct 19, 2021
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this issue Oct 19, 2021
@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/kv-client TiKV kv log client component. severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants