DefaultJiraIndexService.updateIssueActivity() event thread exhaustion

XMLWordPrintable

    • 3
    • Severity 2 - Major
    • 18

      Since Bitbucket Server 5.4.0, where the JIRA Guaranteed Delivery feature was implemented, it is possible for exhaustion in the ExecutorService threadpool to propagate to the event threadpool, possibly causing the event queue to overflow.

      A system impacted by this would see all its event threads blocked with this stack:

         java.lang.Thread.State: WAITING (parking)
      	at sun.misc.Unsafe.park(Native Method)
      	- parking to wait for  <0x00000004492e9ac8> (a java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask)
      	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
      	at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:429)
      	at java.util.concurrent.FutureTask.get(FutureTask.java:191)
      	at com.atlassian.stash.internal.jira.index.DefaultJiraIndexService.updateIssueActivity(DefaultJiraIndexService.java:382)
      

            Assignee:
            Unassigned
            Reporter:
            Ben Humphreys
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: