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

concurrency: use lock modes to detect conflicts during optimistic eval #108179

Merged

Conversation

arulajmani
Copy link
Collaborator

This patch switches over conflict resolution performed by optimistic evaluation to use lock modes instead of ad-hoc logic. As a result of this, optimistic evaluation is able to handle shared locks. We add a test to show this.

Closes #108142

Release note: None

@arulajmani arulajmani requested a review from a team as a code owner August 4, 2023 16:27
@cockroach-teamcity
Copy link
Member

This change is Reviewable

This patch switches over conflict resolution performed by optimistic
evaluation to use lock modes instead of ad-hoc logic. As a result of
this, optimistic evaluation is able to handle shared locks. We add a
test to show this.

Closes cockroachdb#108142

Release note: None
@arulajmani arulajmani force-pushed the sl-optimistic-eval-no-conflicts branch from 77e7576 to 90ba1ef Compare August 4, 2023 18:49
Copy link
Member

@nvanbenschoten nvanbenschoten 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 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @arulajmani)

@arulajmani
Copy link
Collaborator Author

TFTR!

bors r=nvanbenschoten

@craig
Copy link
Contributor

craig bot commented Aug 10, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Aug 10, 2023

This PR was included in a batch that was canceled, it will be automatically retried

@craig
Copy link
Contributor

craig bot commented Aug 10, 2023

Build succeeded:

@craig craig bot merged commit c0fbeb3 into cockroachdb:master Aug 10, 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.

concurrency: optimistic evaluation does not make use of lock modes
3 participants