Deleting a file should not delete failed requests from the objectstore
Problem to solve
Currently when a file is deleted in EOS, a DELETE
event is sent to CTA, which removes the associated object from the objectstore. Usually this is what we want, except when the object is in the failed requests queue. In that case, we want to keep the object for forensics.
Proposal
- Add a bool field
is_failed
to the objectstore schema for archive/retrieve requests, default value:false
- When a request object is moved to the failed request queue, set
is_failed = true
- When a
DELETE
event is being processed, ignore it ifis_failed
istrue