Skip to content

[GCP] Remove lock hint in assignEntries #685

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AlCutter
Copy link
Collaborator

@AlCutter AlCutter commented Jun 6, 2025

This PR removes the exclusive lock hint from the SeqCoord read in assignEntries, and instead leaves it to Spanner to figure out by upgrading internal locks as it goes, which appears to be more performant.

This may result in more transaction retries when running with multiple instances concurrently, but remains safe as we (transactionally) also do an INSERT based on the value read from SeqCoord and UPDATE SeqCoord - we can't accidentally lose/overwrite sequenced entries committed in another tx.

@AlCutter AlCutter requested a review from phbnf June 6, 2025 14:26
@AlCutter AlCutter requested a review from a team as a code owner June 6, 2025 14:26
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.

2 participants