Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-78697

Jira 10 no longer allows customizing webhooks queue size and number of consumers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 10.6.0, 10.3.5
    • 10.0.0, 10.3.4, 10.4.0, 10.5.0
    • Webhooks
    • 10
    • 6
    • Severity 2 - Major
    • 41
    • Hide
      Atlassian Update – April 1, 2025

      Hi everyone,

      Thank you for your patience while we worked on this bug. We are pleased to announce its patch, available in the Jira Data Center 10.3.5 LTS release and the upcoming 10.6.0 release. To receive the fix, you'll need to upgrade Jira.

      Please note that the steps to tune the webhook performance parameters in Jira 10 have changed. For instructions, please consult Tuning webhook performance parameters in Jira Data Center. Additionally, the default parameters were not modified during this patch, so organizations reaching service limits will need to apply the suggested parameters.

      If you have any questions, please reach out to our Support Team.

      Show
      Atlassian Update – April 1, 2025 Hi everyone, Thank you for your patience while we worked on this bug. We are pleased to announce its patch, available in the Jira Data Center 10.3.5 LTS release and the upcoming 10.6.0 release. To receive the fix, you'll need to upgrade Jira . Please note that the steps to tune the webhook performance parameters in Jira 10 have changed. For instructions, please consult Tuning webhook performance parameters in Jira Data Center . Additionally, the default parameters were not modified during this patch, so organizations reaching service limits will need to apply the suggested parameters. If you have any questions, please reach out to our Support Team .

      Issue Summary

      In Jira 9.x, the WebHooks queue size and the number of consumers were configurable.

      However, since Jira 10.0.0, these configurations have changed to hardcoded values, with the queue size set to a non-customizable limit of 250 and 5 consumers.

      This change results in webhook events being discarded when the queued tasks exceed this limit, with no workaround available, representing a regression from previous versions.

      Steps to Reproduce

      1. Configure some 10 WebHooks to listen to all the events available and do not "Exclude body"
      2. Setup a JMeter or other request automation to simulate Issue updates, transitions and comment creations.

      Expected Results

      Jira should allow for the customization of the WebHooks queue size and the number of consumers to handle events as in previous Jira versions. This would allow busier instances to process webhooks without dropping them.

      Actual Results

      WebHooks queue size and the number of consumers are hardcoded to 250 and 5 respectively.

      The below exception is thrown in the atlassian-jira.log file and webhook events are not processed.

      2025-03-17 10:20:32,856+0000 JiraTaskExecutionThread-93 ERROR user     [c.a.event.internal.AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event [com.atlassian.jira.event.issue.IssueEvent@53f06a8a[issue=kanban-145,comment=<null>,worklog=<null>,changelog=[GenericEntity:ChangeGroup][issue,112345][author,User][created,2025-03-17 11:20:32.704][id,556466],eventTypeId=2,sendMail=false,params={eventsource=action, baseurl=https://jira.test.com},subtasksUpdated=true,spanningOperation=Optional.empty]] from the invoker [com.atlassian.event.internal.ComparableListenerInvoker@daad2a]
      java.lang.RuntimeException: Task com.atlassian.webhooks.internal.DefaultWebhookService$$Lambda$11221/0x00007f6699b97b98@33b3e06d rejected from java.util.concurrent.ThreadPoolExecutor@6401247d[Running, pool size = 5, active threads = 5, queued tasks = 250, completed tasks = 2000]. Listener: com.atlassian.jira.plugins.webhooks.spi.JiraWebhookEventPublisher event: com.atlassian.jira.event.issue.IssueEvent
          at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:53)
          at com.atlassian.diagnostics.internal.platform.monitor.event.EventSystemMonitor.invokeMonitored(EventSystemMonitor.java:105) 

      Workaround

      Fixed in 10.3.5 Please note that the steps to tune the webhook performance parameters in Jira 10 have changed. For instructions, please consult Tuning webhook performance parameters in Jira Data Center

              e7591db3c7db Antoni Kowalski
              19936352075c Deepak R
              Votes:
              6 Vote for this issue
              Watchers:
              23 Start watching this issue

                Created:
                Updated:
                Resolved: