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

Statistics - Recalculate vulnerabilities statistics task is scheduled to run at midnight which conflicts with log rotation

    Details

    • Story Points:
      1
    • Sprint:
      NXRM MadMax Sprint 26
    • Notability:
      2
    • InvestmentLayer:
      support-escalated
    • Aha Concept:
      non-concept

      Description

      The Statistics - Recalculate vulnerabilities statistics task according to the documentation runs at midnight:

      When you enable the Log4j Visualizer, Nexus Repository will automatically create the Statistics - Recalculate vulnerabilities statistics task and schedule it to run daily at midnight in the hosting box's time zone by default.

      However its job is to scan log files. Log files are rotated on first inbound request to be recorded to it, on the next day ( after midnight), so the potential for conflict between log rotation moving - renaming files while the task is scanning them exists.

      Expected

      Schedule the task to run by default at a time that would not likely conflict with log rotation. Keep in mind this additional scenario - the request log is rotated on first inbound request to be recorded to it, on the next day ( after midnight) - in a normal busy system this will commonly be in the first minute of12:00 AM in a busy system, but no guarantees.

      Will need to update documentation with new time

      Workaround

      Manually schedule the task to run at a different time.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mkalachov Maksym Kalachov [X] (Inactive)
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Nicholas Blair Nicholas Blair
              Team:
              NXRM - Mad Max
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title