Skip to content

posixfs: metadata corruption on parallel uploads #1867

Closed
opencloud-eu/reva
#414

Description

@rhafer

This issue is similar to #1763, but slightly different as it can happen (and happens in the CI during test) without WATCHFS being enable. (Also the fix will be is somewhat different I think). So let's track this in a separate issue:

  1. User1 uploads a file file1.txt to a space
  2. User2 also uploads a file file1.txt to the same space
  3. the file uploaded by User1 gets into postprocessing first, but (for whatever reason) the postprocessing of the file uploaded by User2 finished before the postprocessing of User1's upload

Outcome:

  1. As soon as the postprocessing of the User2 upload finishes the TOO_EARLY status code vanishes from the propfind response (even though the postprocessing of the User1 upload is not finished)
  2. When postprocessing in finished for both files. The file ending up on the storage has the contents of the User1's upload, but the metadata attribute (blobid, size, ...) of the upload of User2. 💥
  3. A revision node exists with the metadata of User1's upload but without any content. The content uploaded by User2 is lost.

IMO the desired outcome should be:

  • There should be revision node created with the contents and metadata of the upload that finished postprocessing first.
  • The main filesystem node should have the content and metadata of the upload that finished postprocessing last.
  • The TOO_EARLY (425) response to only go away after the postprocessing finished for both uploads

Originally posted by @rhafer in #1763

Activity

  1. self-assigned this
    on Nov 18, 2025
  2. changed the title [-]posixfs: metadata corruption on parallel updates[/-] [+]posixfs: metadata corruption on parallel uploads[/+] on Nov 18, 2025
  3. moved this from Qualification to Prio 2 in OpenCloud Team Boardon Nov 18, 2025
  4. added 2 commits that reference this issue on Nov 18, 2025
    d3e30a3
    126ea38
  5. added 6 commits that reference this issue on Nov 19, 2025
    c0dfdd8
    1aefc05
    f27f2e5
    8480aae
    a73acf7
    e85d8ef
  6. added a commit that references this issue on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions