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

Take version_lock when creating reserved Tx #6633

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

eddyashton
Copy link
Member

Without a lock, this is race-y access to term_of_last_version and rollback_count, which are normally protected by version_lock. There's a comment suggesting this should already have been acquired, but it definitely hasn't in the MerkleTreeHistoryPendingTx::call() path. It's not clear to me where it ever was previously held.

@eddyashton eddyashton requested a review from a team November 12, 2024 11:43
@eddyashton eddyashton added 5.x-todo PRs which should be backported to 5.x run-long-test Run Long Test job labels Nov 12, 2024
@achamayou achamayou added this pull request to the merge queue Nov 12, 2024
Merged via the queue into microsoft:main with commit 97e709b Nov 12, 2024
13 checks passed
@achamayou achamayou deleted the lock_when_creating_reserved branch November 12, 2024 17:07
@achamayou achamayou added the auto-backport Automatically backport this PR to LTS branch label Nov 12, 2024
ghost pushed a commit that referenced this pull request Nov 12, 2024
Co-authored-by: Amaury Chamayou <amchamay@microsoft.com>
(cherry picked from commit 97e709b)
@ghost ghost added the backported This PR was successfully backported to LTS branch label Nov 12, 2024
achamayou pushed a commit that referenced this pull request Nov 13, 2024
… Tx (#6633) (#6638)

Co-authored-by: Eddy Ashton <edashton@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5.x-todo PRs which should be backported to 5.x auto-backport Automatically backport this PR to LTS branch backported This PR was successfully backported to LTS branch run-long-test Run Long Test job
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants