Object names for AQTRTRFF incorrectly set
Summary
When creating an AQTRTRFF
(Archive Queue To Report To Repack For Failure) the name of the object is set to AQTRTRFS
(Archive Queue To Report To Repack For Success). This has no major side effect as the logic is correct and the only problem could be incorrect interpretation from human when trying to debug issues related to this, or when changing current functionality and checking everything is working as expected.
Steps to reproduce
- Generate a
AQTRTRFF
object. - Look for the name in the object store.
What is the current bug behaviour?
Sets the name of the AQTRTRFF
to AQTRTRFS
What is the expected correct behaviour?
Generate the object name as AQTRTRFF
Possible causes
Cause has been identified:
https://gitlab.cern.ch/cta/CTA/-/blob/main/objectstore/RootEntry.cpp?ref_type=heads#L215-222
std::string archiveQueueNameHeader = "ArchiveQueue";
switch (queueType) {
[...]
case common::dataStructures::JobQueueType::JobsToReportToRepackForFailure: archiveQueueNameHeader+="ToReportToRepackForSuccess"; break;
case common::dataStructures::JobQueueType::JobsToReportToRepackForSuccess: archiveQueueNameHeader+="ToReportToRepackForSuccess"; break;