-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Take a look a the command:
cernopendata cold clear_hot
It does three things:
- It attempts to delete the local file
- It creates an objecttag marking the entry as deleted
- it reevaluates the metadata of the record, and saves it on _files (or _index_files)
If, for whatever reason, the command is killed after the second step (and before the third), it leaves the repository in an inconsistent situation, where the file has been marked as deleted, the record does not know about it. Attempting to clear_hot again will give a duplicate_tag error.
Two things to do here:
- (and most important). Check the logic, and ensure that the commit to the database is only done after 3 (and not after 2)
- Make an option, like
-force
, that will continue even if the objecttag exists
Verify if the same issue applies to other commands like archive and stage.
Metadata
Metadata
Assignees
Labels
No labels