Don't queue reports with type NoReportRequired
job status NoReportRequired does not require reporting
sounds harmless, however it is an exception and it triggers an ERROR
in Scheduler::reportArchiveJobsBatch()
.
We should check if this particular exception can be caught and reported in WARNING
/ INFO
level to avoid unnecessary noise.
Example logs:
[1652772417.374231000] May 17 09:26:57.374231 tpsrv684.cern.ch cta-taped: LVL="INFO" PID="27644" TID="27644" MSG="In Algorithms::popNextBatch(): elements retrieval complete." SubprocessName="maintenanceHandler" C="ArchiveQueueToReportForUser" tapepool="r_na62_2" files="6" findLockFetchQueueTime="0.002834" jobSelectionTime="0.000779" ownershipAdditionTime="0.000009" asyncUpdateLaunchTime="0.003985" asyncUpdateCompletionTime="0.007160" updateResultProcessingTime="0.000103" containerUpdateTime="0.002375" containerTrimmingTime="0.887698" containerUnlockTime="0.000003" structureProcessingTime="0.000024" schedulerDbTime="0.905416" iterationCount="1"
[1652772417.375291000] May 17 09:26:57.375291 tpsrv684.cern.ch cta-taped: LVL="ERROR" PID="27644" TID="27644" MSG="In Scheduler::reportArchiveJobsBatch(): failed to launch reporter." SubprocessName="maintenanceHandler" fileId="4368793111" reportType="NoReportRequired" exceptionMSG="In ArchiveJob::exceptionThrowingReportURL(): job status NoReportRequired does not require reporting."
[1652772417.381295000] May 17 09:26:57.381295 tpsrv684.cern.ch cta-taped: LVL="INFO" PID="27644" TID="27644" MSG="In Helpers::getLockedAndFetchedQueue<ArchiveQueue>(): Successfully found and locked an archive queue." SubprocessName="maintenanceHandler" fileId="4368793111" reportType="NoReportRequired" exceptionMSG="In ArchiveJob::exceptionThrowingReportURL(): job status NoReportRequired does not require reporting." attemptNb="1" queueObject="ArchiveQueueFailed-r_na62_2-DriveProcess-I1L80933-tpsrv318.cern.ch-28804-20210622-05:04:44-0-14" rootFetchNoLockTime="0.001075" rootRelockExclusiveTime="0.000000" rootRefetchTime="0.000000" addOrGetQueueandCommitTime="0.000000" rootUnlockExclusiveTime="0.000000" queueLockTime="0.001558" queueFetchTime="0.000492"
[1652772417.399689000] May 17 09:26:57.399689 tpsrv684.cern.ch cta-taped: LVL="INFO" PID="27644" TID="27644" MSG="In ContainerAlgorithms::referenceAndSwitchOwnership(): Requeued a batch of elements." SubprocessName="maintenanceHandler" fileId="4368793111" reportType="NoReportRequired" exceptionMSG="In ArchiveJob::exceptionThrowingReportURL(): job status NoReportRequired does not require reporting." C="ArchiveQueueFailed" tapepool="r_na62_2" containerAddress="ArchiveQueueFailed-r_na62_2-DriveProcess-I1L80933-tpsrv318.cern.ch-28804-20210622-05:04:44-0-14" queueJobsBefore="1118" queueBytesBefore="1054189939656" queueJobsAfter="1119" queueBytesAfter="1054215797856" queueLockFetchTime="0.003329" queueProcessAndCommitTime="0.009828" asyncUpdateLaunchTime="0.000110" asyncUpdateCompletionTime="0.003717" requestsUpdatingTime="0.000029" queueUnlockTime="0.000962"
[1652772417.401103000] May 17 09:26:57.401103 tpsrv684.cern.ch cta-taped: LVL="INFO" PID="27644" TID="27644" MSG="In ArchiveJob::failReport(): stored job in failed container for operator handling." SubprocessName="maintenanceHandler" fileId="4368793111" reportType="NoReportRequired" exceptionMSG="In ArchiveJob::exceptionThrowingReportURL(): job status NoReportRequired does not require reporting." copyNb="2" failureReason="In ArchiveJob::exceptionThrowingReportURL(): job status NoReportRequired does not require reporting." requestObject="ArchiveRequest-Frontend-ctaproductionfrontend01.cern.ch-6483-20220504-09:42:28-0-2422166" reportRetries="0" maxReportRetries="0"