Repository navigation
fix: revision handling for parallel uploads to the same node - #414
Merged
Merged
Conversation
rhafer
force-pushed
the
ocissue/1763
branch
3 times, most recently
from
November 12, 2025 15:35
c55f407 to
b2a0599
Compare
rhafer
force-pushed
the
ocissue/1763
branch
3 times, most recently
from
November 13, 2025 18:46
7f6c0c1 to
7228909
Compare
rhafer
force-pushed
the
ocissue/1763
branch
6 times, most recently
from
November 18, 2025 08:17
63725dc to
771319a
Compare
When multiple uploads on the same node are in post-processing at the same time the upload that enters post-processing 2nd will create a new file revision where the 1st upload is supposed to endup. However if the upload finished post-processing before the 1st upload the blob of the first upload ended up over-writing the original node. We now make sure that the 1st upload is writing the blob to the revision node. Closes: cs3org#1867
The "hybrid" metabackend created the metadata lock on the wrong file (*.flock instead *.mlock) when locking the metadata.
rhafer
marked this pull request as ready for review
November 18, 2025 10:13
Member
Author
|
This still fails in the antiVirus test sometimes (see e.g. https://ci.opencloud.eu/repos/3/pipeline/565/70), but that is not a new issue. See e.g. here opencloud-eu/qa#50 (comment), back then I still hoped that I could fix that in this PR as well, but I'd really prefer to keep this small (and digestible) and get this one merged now as it already fixes quite some corruptions, many of which went unnoticed by the tests. |
butonic
approved these changes
Nov 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When multiple uploads on the same node are in post-processing at the same time the upload that enters post-processing 2nd will created a new file revision.
However if the upload finished post-processing before the 1st upload the blob of the first upload ended up over-writing the original node. We now make sure that the 1st upload's session is set to write the blob to the revision node.
Closes: opencloud-eu/opencloud#1867