-
Notifications
You must be signed in to change notification settings - Fork 995
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
Fixed data race in threads found thread sanitizer #2209
Conversation
It looks like it needs a little more fixing, so I will change to draft once. |
Coincidentally, the following datarace was also detected, so we took action.
Not enough information from It seems that there is a conflict between So that, I have included this fix in this PR. |
I am very happy with the ThreadSanitizer errors in CI and subsequent fixes! |
@gaul It seems that the problem of #2209 (comment) still remains. |
Relevant Issue (if applicable)
n/a
Details
The following error in the ThreadSinitizer test was detected, so it was fixed.
This is because some methods that deal with the
pending_status
variable use different locking variables than others.These methods used
fdent_data_lock
and should have usedfdent_lock
.(
FdEntity::UploadPending
calls theFlush
method, sofdent_data_lock
doesn't work)Also, the comments in
s3fs.cpp
were confirmed by this fix and have been removed.