Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-16930

no reason logged at default levels why QuartzTaskFuture healthcheck task is canceled

    Details

    • Story Points:
      1

      Description

      Example log messages that might be visible when a task is Cancelled:

      2018-04-23 03:30:53,835+0200 INFO  [quartz-5-thread-14]  *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'System - Repository Health Check: hibernate-spatial-mb' [healthcheck] state change WAITING -> RUNNING
      2018-04-23 03:30:53,863+0200 INFO  [quartz-5-thread-14]  *SYSTEM org.sonatype.nexus.scheduling.internal.TaskSchedulerImpl - Task 'System - Repository Health Check: hibernate-spatial-mb' [healthcheck] scheduled: hourly
      2018-04-23 03:30:53,863+0200 INFO  [quartz-5-thread-14]  *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskFuture - Task canceled 'System - Repository Health Check: hibernate-spatial-mb' [healthcheck]
      2018-04-23 03:30:53,866+0200 INFO  [quartz-5-thread-14]  *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'System - Repository Health Check: hibernate-spatial-mb' [healthcheck] state change RUNNING -> WAITING (CANCELED)
      

      The healthcheck task has no task logs by design in this case, and no other log messages indicate why the healthcheck task was immediately cancelled.

      Expected

      There should be a log message at INFO explaining the root cause of task cancellation ( server shutting down, user manually cancelled the task, specific programatic condition not met to proceed, etc.? ) every time any task is cancelled.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jbryan Jeremy Bryan
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Peter Lynch Peter Lynch
              Team:
              Nexus - Core
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  tigCommentSecurity.panel-title