Skip to content

kv/spanset: permit writes to lock table by shared lock latching configuration#111526

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/sharedLockLatchingSpanSet
Sep 29, 2023
Merged

kv/spanset: permit writes to lock table by shared lock latching configuration#111526
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/sharedLockLatchingSpanSet

Conversation

@nvb
Copy link
Copy Markdown
Contributor

@nvb nvb commented Sep 29, 2023

Fixes #111409.
Fixes #111492.

This commit updates addLockTableSpans to account for the way that shared locking requests declare their latches. Even though they declare a "read" latch, they do so at max timestamp, which gives them sufficient isolation to write to the lock table without having to declare a write latch and be serialized with other shared lock acquisitions.

Release note: None

…guration

Fixes cockroachdb#111409.
Fixes cockroachdb#111492.

This commit updates addLockTableSpans to account for the way that shared locking
requests declare their latches. Even though they declare a "read" latch, they do
so at max timestamp, which gives them sufficient isolation to write to the lock
table without having to declare a write latch and be serialized with other
shared lock acquisitions.

Release note: None
@nvb nvb requested a review from arulajmani September 29, 2023 18:48
@nvb nvb requested a review from a team as a code owner September 29, 2023 18:48
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Collaborator

@arulajmani arulajmani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @nvanbenschoten)

@nvb
Copy link
Copy Markdown
Contributor Author

nvb commented Sep 29, 2023

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Sep 29, 2023

Build succeeded:

@craig craig bot merged commit 41927e1 into cockroachdb:master Sep 29, 2023
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.

kv/kvclient/kvcoord: TestTxnCoordSenderRetries failed kv/kvserver: TestSharedLocksBasic failed during spanset assertion

3 participants