-
Notifications
You must be signed in to change notification settings - Fork 360
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
Committing an object deletion to master erases object from all commits to master #997
Comments
Thanks! Results from immediate triage: It looks bad in the UI, but the deleted object is still there. Our tests however are not specific enough to detect this and they should. I recreated using the following commands ( echo foo | AWS_PROFILE=local aws --endpoint-url http://s3.local.lakefs.io:8000 s3 cp - s3://foo/master/abc
./lakectl commit lakefs://foo@master -m 'commit foo'
AWS_PROFILE=local aws --endpoint-url http://s3.local.lakefs.io:8000 s3 rm s3://foo/master/abc
./lakectl commit lakefs://foo@master -m 'delete foo'
./lakectl log lakefs://foo@master Now browsing the objects in the GUI for the previous commit " It's a (serious) UI bug, but no data loss. |
@tzahij who I think is our expert on this area -- WDYT? |
|
Looks bad, I am on it |
Thanks to the accurate bug description by tsykes-2020, I was able to find the and fix the bug. |
…s to master - #997 (#1000) * SSTable interface for committed data * Remove unnecessary funcs from iterator * added test for merge with zero changes * initial commit of tree * Change iterator to match the existing scanners interfaces * initial commit of tree * initial commit of tree * initial commit for rocks catalog interface * sstable initial implementation without repo seperation * initial catalog interface * initial catalog interface * initial catalog interface * Update catalog/rocks/catalog.go Co-authored-by: itaiad200 <itaiad200@gmail.com> * iterator interface * diff type comment * continue talking about StagingManager * initial commit of tree * just save changes - initial * working on apply * working on apply * working on apply * sstable interface * changes * fix to entry disappearing from a commit listing when it was deleted in a later commit * Update catalog/mvcc/cataloger_delete_entry_test.go Co-authored-by: arielshaqed <ariels@treeverse.io> * compare with get entry with catalog entry not found * changes after review Co-authored-by: Itai Admi <itaiad200@gmail.com> Co-authored-by: guyhardonag <guy.hardonag@treeverse.io> Co-authored-by: guy-har <60321938+guy-har@users.noreply.github.com> Co-authored-by: Barak Amar <barak.amar@treeverse.io> Co-authored-by: arielshaqed <ariels@treeverse.io>
Hi @tsykes-2020 release v0.20.0 should include this fix - let us know if it is working for you or if you have any other issue. |
version: 0.19.0
Steps to reproduce
master
and alocal://
storage namespacefile.jpg
) tomaster
and commit the change.Expected result
The listing should include
file.jpg
Actual result
The listing is empty
The above happens in both the web UI and the CLI.
It seems that the issue does not occur when the object is deleted from branches that it wasn't created under,
The text was updated successfully, but these errors were encountered: