CI test the retry of a "layout only" conversion job
An operator might purposely or accidentally trigger the conversion of a file from one disk layout to another within the same EOS space. This issue refers to such a conversion job that does not move a file between spaces as a "layout only" conversion job. A "layout only" conversion job will change the EOS file ID of the file being converted and will send an appropriate UPDATE_FID
event to the CTA frontend so that the CTA catalogue can be updated. If the delivery and processing of the event is not successful then the conversion job should be failed and the original EOS file left as it was, including its original EOS file ID.
A CI test should:
- Start the CTA frontend in order to fail conversion jobs that send UPDATE_FID event messages.
- Create a "layout only" conversion job for file that is both on tape and disk.
- Test the exit value of the job creation is success because job creation is asynchronous.
- Test the actual conversion job fails.
- Test the EOS file ID has not been changed in the EOS namespace.
- Test the EOS file ID in the CTA file catalogue matches that of the EOS namespace.
- Test the original disk replica(s) have been left untouched.
- Test the tape replica and archive ID have been left untouched.
- Identify the failed conversion job by ID.
- Delete the failed conversion job.
- Test the EOS file ID has not been changed in the EOS namespace.
- Test the EOS file ID in the CTA file catalogue matches that of the EOS namespace.
- Test the original disk replica(s) have been left untouched.
- Test the tape replica and archive ID have been left untouched.
- Start the CTA frontend.
- Re-create the "move space" conversion job.
- Test the exit value of the job creation is success.
- Test the actual conversion job succeeds.
- Test the EOS file ID has been changed in the EOS namespace.
- Test the EOS file ID in the CTA file catalogue matches that of the EOS namespace.
- Test the disk replica(s) have been changed.
- Test the tape replica and archive ID have been left untouched.