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

p-dml: fail pipelined dml when max ttl exceeded (#1329) #1330

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

you06
Copy link
Contributor

@you06 you06 commented Apr 30, 2024

Cherry pick #1329 to tidb-8.1 branch

ref tikv/tikv#16291

Once the ttl manager is automatically closed after max ttl. And the PK may be rolled back after it, stop the ttl manager and fail the dml to avoid committing PK failure.

Without this PR, the worst case is p-dml cannot be aware of PK rollback, and keep flushing locks which block GC for a long time.

@ekexium ekexium merged commit f841120 into tikv:tidb-8.1 Apr 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants