Obsolete scheduler jobs BatchNotificationJobRunner and AuditCleanupJobRunner cause persistent WARN logs in Bitbucket 9.4.26

XMLWordPrintable

    • 1
    • Severity 3 - Minor
    • 4

      Issue Summary

      Following an upgrade to Bitbucket 9.4.x (specifically reported in 9.4.26), the atlassian-bitbucket.log is flooded with WARN messages from AbstractSchedulerService. These warnings indicate that the scheduler is attempting to run jobs for which no runner is registered.

      WARN [Caesium-1-4] c.a.s.core.AbstractSchedulerService Job 'BatchNotificationJobRunner' completed with non-success outcome: outcome=UNAVAILABLE durationMs=11 message='Job runner key 'com.atlassian.stash.internal.notification.batch.BatchNotificationJob$BatchNotificationJobRunner' is not registered'
      
      WARN [Caesium-1-4] c.a.s.core.AbstractSchedulerService Job 'com.atlassian.bitbucket.internal.audit.AuditCleanupJobRunner' completed with non-success outcome: outcome=UNAVAILABLE durationMs=9 message='Job runner key 'com.atlassian.bitbucket.internal.audit.AuditCleanupJobRunner' is not registered'
      

      Steps to Reproduce

      1. Have a Bitbucket instance.
      2. Upgrade the instance to Bitbucket 9.4.26.
      3. Observe the atlassian-bitbucket.log.

      Expected Results

      Obsolete jobs should be automatically cleaned up during the upgrade process, or the scheduler should not log warnings for known legacy Atlassian jobs.

      Actual Results

      The logs are filled with "not registered" warnings, creating unnecessary noise for administrators and support teams.

      The below exception is thrown in the atlassian-bitbucket.log file:

      WARN [Caesium-1-4] c.a.s.core.AbstractSchedulerService Job 'BatchNotificationJobRunner' completed with non-success outcome: outcome=UNAVAILABLE durationMs=11 message='Job runner key 'com.atlassian.stash.internal.notification.batch.BatchNotificationJob$BatchNotificationJobRunner' is not registered'
      
      WARN [Caesium-1-4] c.a.s.core.AbstractSchedulerService Job 'com.atlassian.bitbucket.internal.audit.AuditCleanupJobRunner' completed with non-success outcome: outcome=UNAVAILABLE durationMs=9 message='Job runner key 'com.atlassian.bitbucket.internal.audit.AuditCleanupJobRunner' is not registered'
      

      Workaround

      Manually delete the stale rows from the database:

      DELETE FROM bb_clusteredjob 
      WHERE job_id IN ('BatchNotificationJobRunner', 'com.atlassian.bitbucket.internal.audit.AuditCleanupJobRunner');
      

              Assignee:
              Unassigned
              Reporter:
              Bharat Malviya
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: