Undelete files in the archive and tape file recycle bins
The CTA catalogue contains the following two tables which effective list the tape files that were deleted from the CTA catalogue but have not yet been physically erased from their corresponding tapes.
ARCHIVE_FILE_RECYCLE_BIN
TAPE_FILE_RECYCLE_BIN
The contents of these tables will be collectively referred to as the "tape file recycle bin".
Metadata gets into the recycle bin like so:
- File is written to tape.
- File metadata is written to the
ARCHIVE_FILE
andTAPE_FILE
tables. - User deletes file from EOS namespace:
eos rm path
. - File metadata is inserted into the
ARCHIVE_FILE_RECYCLE_BIN
andARCHIVE_FILE_RECYCLE_BIN
. - File metadata is deleted from the
ARCHIVE_FILE
andTAPE_FILE
tables.
Steps 1 to 5 are already implemented. What comes next is not implemented and this is what this ticket refers to.
- An operator should be able to undelete a tape file by having it's metadata moved from the recycle bin tables back to the
ARCHIVE_FILE
andTAPE_FILE
tables. - An operator should be able to list the contents of the recycle bin.
For completion the following has been implemented:
- An operator should be able to permanently erase file metadata from the recycle bin.