-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
store/tikv: set short pessimistic lock TTL through failpoints #22431
Conversation
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
store/tikv/2pc.go
Outdated
logutil.BgLogger().Info("[failpoint] injected failure at running ttlManager", | ||
zap.Uint64("txnStartTS", c.startTS)) | ||
failpoint.Return() | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this redundant with doNotKeepAlive
in this pr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yes. We should do these things in serial.
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@sticnarf merge failed. |
/run-unit-test |
/merge |
/run-all-tests |
What is changed and how it works?
Make it possible to set short TTL for pessimistic locks and skip running TTL manager. It helps tests (for example tikv/tikv#9523).
Check List
Tests
Release note
No release note