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

Storage Engine: fix wal delete thread exception because multi thread safety question #12020

Merged
merged 2 commits into from
Feb 2, 2024

Conversation

caozj1011
Copy link
Contributor

@caozj1011 caozj1011 commented Feb 2, 2024

Description

The existing mechanism will have multiple threads modify the partitionMaxFileVersions property, which may cause a concurrency problem. This PR will fix an exception raised by a concurrency problem

Before this PR

Have a probability will throw a ConcurrentModificationException
image

After this PR

ConcurrentModificationException will not happen again

@HTHou HTHou merged commit bbdca54 into apache:master Feb 2, 2024
35 of 36 checks passed
HTHou pushed a commit that referenced this pull request Mar 5, 2024
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