Deleted hook scripts are not being cleaned up

XMLWordPrintable

    • Severity 3 - Minor
    • CtB - Improve Existing

      Issue Summary

      Sometimes, it's possible to have unreferenced hook scripts on disk when running mesh sidecar. There's meant to be a job that runs each day to clean them up, but this job is not running. 

      Steps to Reproduce

      Enable logging for the scheduled job by adding 
      logging.logger.com.atlassian.scheduler.core.AbstractSchedulerService=DEBUG

      Expected Results

       
      The unreferenced hook script gets deleted from the shared/config/hook-scripts folder within 24 hours. 

      Actual Results

      The below exception is thrown in the log, and the unreferenced script is not deleted.

      jobId=HookScriptService.cleanupJob startedAt=Fri Feb 24 12:55:02 AEDT 2023 runOutcome=FAILED message=HibernateException: Could not obtain transaction-synchronized Session for current thread 

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            David Jansons
            Reporter:
            David Jansons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: