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
scan the file in the write lock when uploading over dav #22290
Conversation
By analyzing the blame information on this pull request, we identified @PVince81, @DeepDiver1975 and @bartv2 to be potential reviewers |
That seems to make sense. How about the other code path, the one that does chunking ? Does it also need a similar fix ? |
also fixed the chunked upload code path |
Not sure if bad luck...
|
I ran test_basicSync a few times again, alone (not will fullsmash) and it went through... could be the known random fail. |
Ok, it seems to work now. @nickvergessen confirmed to me that this test randomly fails. So I think this PR is fine 👍 Second reviewer @nickvergessen @schiesbn @nickvergessen @DeepDiver1975 ? |
@butonic @MorrisJobke potential fix for the scanning concurrency issue |
Upload and sync still works 👍 |
cc @karlitschek |
scan the file in the write lock when uploading over dav
@icewind1991 Could you please prepare the backport PR |
8.2: #22325 |
great fix. Please backport! 👍 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Currently there is a slight chance that a different process might trigger the scan before the upload process got the time do to it.
Note that we can do this within the exclusive lock only since the scan trigger from
Updater->update
explicitly does not acquire another read lockShould probably be backported to 8.2.x once properly tested
cc @PVince81 @schiesbn