-
Notifications
You must be signed in to change notification settings - Fork 186
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
Orphaned blobs when creating versions #9498
Comments
Found the reason:
|
this issue is not completely fixed. i wrote test coverage for this issue but the build is failing. build: https://drone.owncloud.com/owncloud/ocis/40465/45/7 there might be no orphan blobs created when using web but for api there is still a problem.
🚨 Inconsistent Blobs:
👉️ [blob orphaned] blob: /home/niraj/.ocis/storage/users/spaces/ac/9e64ed-de6e-42f6-9d9d-b85f7376a1f0/blobs/5f/32/e4/59/-4498-4dd3-afa2-4bf60b20a28f CC @kobergj |
FYI, this is not the case with webUI upload (TUS upload). Same actions via webUI doesn't create an orphaned blob |
Escalated to p2 as orphaned blobs are bad |
I had a short look on it. Something seems very broken. When executing above curl for the 3rd time an orphaned blob will be created. Running it again will not increase the amount of orphaned blobs. It will always only be one. When restoring a version via web ui the version gets lost and the blob stays orphaned. This is only happening when upload the exact same bytes, so it will not lead to data loss, still we should investigate this within this release. |
Uff. The revision files created by the above curl command don't have the sub-second component:
vs. a "normal" revsion:
The |
'ocis backup consistency' was stumbling over revision (and trash) nodes whose timestamp lacked the nanosecond component (which happens if the nanoseconds of the mtime are 0) Fixes: owncloud#9498
'ocis backup consistency' was stumbling over revision (and trash) nodes whose timestamp lacked the nanosecond component (which happens if the nanoseconds of the mtime are 0) Fixes: owncloud#9498
The above PR fixes the issue with the backup consistency checker. The "orphaned blob" error simply was a false positive. When uploading a file with the same mtime and name but different contents multiple times, I get "500 Internal Server Error" for all uploads after the 2nd upload. (I'll create a separate issue for this) |
'ocis backup consistency' was stumbling over revision (and trash) nodes whose timestamp lacked the nanosecond component (which happens if the nanoseconds of the mtime are 0) Fixes: #9498
'ocis backup consistency' was stumbling over revision (and trash) nodes whose timestamp lacked the nanosecond component (which happens if the nanoseconds of the mtime are 0) Fixes: #9498
Ocis creates orphaned blobs when the same file is uploaded multiple times.
ocis backup consistency
-> There is an orphaned blob in the blobstore
-> The file has only version
That the file has only one version might be expected behaviour because it is the same file after all. But there should not be an orphaned blob because of this.
Note that this doesn't happen if you upload a file with different content but the same name. Versions are created as expected and there is no orphaned blobs.
The text was updated successfully, but these errors were encountered: