Scheduler can cause deadlock during Data Import

XMLWordPrintable

    • Severity 2 - Major

      NOTE: This bug report is for JIRA Cloud. Using JIRA Server? See the corresponding bug report.

      Discovered that the scheduler can cause deadlocks with DataImport.

      This is a result of 2 things:

      1. We call - schedUtil.shutdownScheduler(sched);
        This in turn calls - scheduler.shutdown(); This does not block until services are finished.
        We should call - scheduler.shutdown(true); (and have a timeout on the operation too).
      2. Webworks inherited thread local problem. Anton knows the details of this.

      The attached thread dump contains the deadlock.
      Note that there are three threads with the name - JiraQuartzScheduler_Worker-0

        1. runaway_service.txt
          58 kB
          Nick Menere [Atlassian]
        2. stack.txt
          79 kB
          bain

              Assignee:
              Unassigned
              Reporter:
              Nick Menere [Atlassian] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: