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

Repair - Reconcile component database from blobstore task does not log its settings when run

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.37.1, 3.40.1
    • Fix Version/s: None
    • Component/s: Logging, Scheduled Tasks
    • Labels:
    • Story Points:
      0.5
    • Notability:
      n/a

      Description

      When running the Repair - Reconcile component database from blobstore task, it does not log the settings it was configured with.

      Entire logging in nexus.log:

      2021-12-22 14:33:56,884-0400 INFO  [qtp777747181-121] admin org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'repairbin77' [blobstore.rebuildComponentDB] runNow
      2021-12-22 14:33:56,886-0400 INFO  [qtp777747181-121] admin org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'repairbin77' [blobstore.rebuildComponentDB] state change WAITING -> RUNNING
      2021-12-22 14:33:56,910-0400 INFO  [quartz-12-thread-5] *SYSTEM org.sonatype.nexus.blobstore.restore.orient.OrientRestoreMetadataTask - Task log: /Users/plynch/Downloads/hid/boot-20211222-175123-2/sonatype-work/nexus3/log/tasks/blobstore.rebuildComponentDB-20211222143356906.log
      2021-12-22 14:33:56,911-0400 INFO  [quartz-12-thread-5] *SYSTEM org.sonatype.nexus.blobstore.restore.orient.OrientRestoreMetadataTask - Will process all blobs
      2021-12-22 14:33:56,916-0400 INFO  [quartz-12-thread-5] *SYSTEM org.sonatype.nexus.blobstore.restore.orient.DefaultOrientIntegrityCheckStrategy - Checking integrity of assets in repository 'bin77-cached' with blob store 'bin77-cached'
      2021-12-22 14:33:56,923-0400 INFO  [quartz-12-thread-5] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'repairbin77' [blobstore.rebuildComponentDB] state change RUNNING -> WAITING (OK)
      

      Entire logging from task specific log file for same task as above:

      2021-12-22 14:33:56,906-0400 INFO  [quartz-12-thread-5]  *SYSTEM org.sonatype.nexus.blobstore.restore.orient.OrientRestoreMetadataTask - Task information:
      2021-12-22 14:33:56,908-0400 INFO  [quartz-12-thread-5]  *SYSTEM org.sonatype.nexus.blobstore.restore.orient.OrientRestoreMetadataTask -  ID: f634b401-dce6-4c27-a8ff-fcfc1bb9323d
      2021-12-22 14:33:56,908-0400 INFO  [quartz-12-thread-5]  *SYSTEM org.sonatype.nexus.blobstore.restore.orient.OrientRestoreMetadataTask -  Type: blobstore.rebuildComponentDB
      2021-12-22 14:33:56,908-0400 INFO  [quartz-12-thread-5]  *SYSTEM org.sonatype.nexus.blobstore.restore.orient.OrientRestoreMetadataTask -  Name: repairbin77
      2021-12-22 14:33:56,908-0400 INFO  [quartz-12-thread-5]  *SYSTEM org.sonatype.nexus.blobstore.restore.orient.OrientRestoreMetadataTask -  Description: null
      2021-12-22 14:33:56,911-0400 INFO  [quartz-12-thread-5]  *SYSTEM org.sonatype.nexus.blobstore.restore.orient.OrientRestoreMetadataTask - Will process all blobs
      2021-12-22 14:33:56,916-0400 INFO  [quartz-12-thread-5]  *SYSTEM org.sonatype.nexus.blobstore.restore.orient.DefaultOrientIntegrityCheckStrategy - Checking integrity of assets in repository 'bin77-cached' with blob store 'bin77-cached'
      2021-12-22 14:33:56,922-0400 INFO  [quartz-12-thread-5]  *SYSTEM org.sonatype.nexus.blobstore.restore.orient.OrientRestoreMetadataTask - Task complete
      
      

      Expected

      Task settings should always be logged at INFO level when a task runs.

      Preference to a single INFO message logged in two log files.

      1. task specific log
      2. nexus.log

      One reason that justifies both places is the task logs get pruned sooner (30 days) than a nexus.log (90 days).

      I could see where we might even decide to log all task setting metadata (name,type,description, settings, ID - all in a single parseable log line.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title