-
Notifications
You must be signed in to change notification settings - Fork 269
txnkv: support shared lock upgrades #2014
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
Open
wfxr
wants to merge
13
commits into
tikv:master
Choose a base branch
from
wfxr:feat/shared-lock-upgrade-next-gen
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
29f2c16
txnkv/transaction, kv: support shared lock upgrade keys
wfxr 6de5740
txnkv/transaction: reject upgrade in aggressive locking
wfxr 4eeac79
error, txnkv: preserve typed lock upgrade conflicts
wfxr c28a51d
refactor(transaction): rename lock upgrade outcome helper
wfxr 17d78b5
refactor(transaction): remove redundant rollbackKeys parameter
wfxr 0bd84a5
refactor(txnkv): narrow LockOnlyIfExists err key scope
wfxr c2c0ea7
chore: add comment
wfxr ad6edbd
test: fix unit test
wfxr 99fe73f
error, apicodec: preserve shared lock loss
wfxr 4ccfc8a
txnkv: poison transactions after shared lock loss
wfxr 8775c6a
chore(deps): use remote kvproto fork
wfxr 0e96c9e
fix(txnkv): simplify lock value lookup
wfxr 93081a8
fix(integration): use shared lock kvproto fork
wfxr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: tikv/client-go
Length of output: 144
🏁 Script executed:
Repository: tikv/client-go
Length of output: 3794
🏁 Script executed:
Repository: tikv/client-go
Length of output: 3462
🏁 Script executed:
Repository: tikv/client-go
Length of output: 7333
🏁 Script executed:
Repository: tikv/client-go
Length of output: 368
🏁 Script executed:
Repository: tikv/client-go
Length of output: 22249
Limit the
kvprotoreplacement to the versions that need it.The unversioned replace directive also substitutes the older
github.com/pingcap/kvproto@v0.0.0-20260622063236-b41e86365ce0selected bytikb/pd/client, while the direct module target is the newer commit. Scope the replacement to the single version that requiresgithub.com/wfxr/kvprotounless the older transitive version is also compatible.🤖 Prompt for AI Agents