Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-10920

DefaultJiraIndexService.updateIssueActivity() event thread exhaustion

    XMLWordPrintable

Details

    Description

      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)
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: