Race condition leads to data deletion
0.1.x USERS: the S3 Copy call will delete your data if the source and the destination are the same object. This is being worked on and will be fixed in
- Probably fixed in
- Write regression test
The scenario that caused this error was in the CopyObject call when the source and the destination had the same path (i.e. the destination overwrites the source, e.g. to change some metadata info). Basically there was a race condition in the refcount for blocks leading to rc=0, blocks get deleted, rc goes back to 1, blocks are nowhere to be found.
TODO for NGI Milestone 1: add a 24-hour delay before deleting anything on disk (table GC and block deletion)
Deleting a branch is permanent. It CANNOT be undone. Continue?