Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56428

Timeout Exception: FATAL: Unable to generate release notes for JIRA version

    Details

    • Type: Bug
    • Status: Fixed but Unreleased (View Workflow)
    • Priority: Critical
    • Resolution: Not A Defect
    • Component/s: jira-plugin
    • Labels:
      None
    • Environment:
      Jira-plugin 3.0.5, Jira-plugin 3.0.6
      Jenkins 2.163 (and earlier), Jenkins ver. 2.172
      JIRA v7.9.2
    • Similar Issues:

      Description

      We're getting an (instant) timeout exception when attempting to Generate Release Notes:

      Console output:

      11:23:22 FATAL: Unable to generate release notes for JIRA version RPM 0.1.3-8/VSA: java.util.concurrent.TimeoutException: Timeout waiting for task.
      11:23:22 java.util.concurrent.TimeoutException: Timeout waiting for task.
      11:23:22 	at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:259)
      11:23:22 	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:91)
      11:23:22 	at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:69)
      11:23:22 	at com.atlassian.jira.rest.client.internal.async.DelegatingPromise.get(DelegatingPromise.java:113)
      11:23:22 	at hudson.plugins.jira.JiraRestService.getIssuesFromJqlSearch(JiraRestService.java:197)
      11:23:22 	at hudson.plugins.jira.JiraSession.getIssuesWithFixVersion(JiraSession.java:178)
      11:23:22 	at hudson.plugins.jira.JiraSite.getReleaseNotesForFixVersion(JiraSite.java:955)
      11:23:22 	at hudson.plugins.jira.JiraCreateReleaseNotes.setUp(JiraCreateReleaseNotes.java:132)
      11:23:22 	at jenkins.tasks.SimpleBuildWrapper.setUp(SimpleBuildWrapper.java:146)
      11:23:22 	at hudson.model.Build$BuildExecution.doRun(Build.java:157)
      11:23:22 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      11:23:22 	at hudson.model.Run.execute(Run.java:1818)
      11:23:22 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      11:23:22 	at hudson.model.ResourceController.execute(ResourceController.java:97)
      11:23:22 	at hudson.model.Executor.run(Executor.java:429)

       

      The log output isn't much different:

      Apr 12, 2019 11:23:22 AM FINE hudson.plugins.jira.JiraSession

      Fetching versions from project: VSA with fixVersion:RPM 0.1.3-8

      Apr 12, 2019 11:23:22 AM WARNING hudson.plugins.jira.JiraRestService getIssuesFromJqlSearch

      jira rest client timeout from jql search error. cause: Timeout waiting for task.
      java.util.concurrent.TimeoutException: Timeout waiting for task.
              at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:259)
               at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:91)
               at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:69)
               at com.atlassian.jira.rest.client.internal.async.DelegatingPromise.get(DelegatingPromise.java:113)
               at hudson.plugins.jira.JiraRestService.getIssuesFromJqlSearch(JiraRestService.java:197)
               at hudson.plugins.jira.JiraSession.getIssuesWithFixVersion(JiraSession.java:178)
               at hudson.plugins.jira.JiraSite.getReleaseNotesForFixVersion(JiraSite.java:955)
               at hudson.plugins.jira.JiraCreateReleaseNotes.setUp(JiraCreateReleaseNotes.java:132)
               at jenkins.tasks.SimpleBuildWrapper.setUp(SimpleBuildWrapper.java:146)
               at hudson.model.Build$BuildExecution.doRun(Build.java:157)
               at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
               at hudson.model.Run.execute(Run.java:1818) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
               at hudson.model.ResourceController.execute(ResourceController.java:97)
               at hudson.model.Executor.run(Executor.java:429)

      The Release version is queried from Jira using Jira Release Version Parameter, which is working perfectly - but I have also tried to hardcode the string.

      I've attempted to change Environment Variables, address another JIRA project and the Additional Issue Filter etc. but to no avail.

      I did also attempt to downgrade the plugin (to 3.0.2, which is the only one available. Unfortunately I'm immediately told I need to upgrade to 3.0.5. > Attempting to run the job on 3.0.2 results in a nullpointer exception.

       

      Finally, I've been fiddling with access rights on JIRA, but it seems to have no affect whatsoever.

        Attachments

          Activity

          Hide
          fsteff Flemming Steffensen added a comment -

          Radek Antoniuk I've seen you have had great answers for this plugin in the past. Do you have any idea what might the the problem here?

          Show
          fsteff Flemming Steffensen added a comment - Radek Antoniuk I've seen you have had great answers for this plugin in the past. Do you have any idea what might the the problem here?
          Hide
          fsteff Flemming Steffensen added a comment -

          The fix

          Argh. This turned out to be a user error - apparently combined with some bad defaults.

          I don't know when the timeout parameters and Thread Executor Size were introduced, but it turns out that the default value of 0 (zero) isn't healthy. :-/

           

          Adding some values greater than zero at random, worked:

           

           

           

           

          Show
          fsteff Flemming Steffensen added a comment - The fix Argh. This turned out to be a user error - apparently combined with some bad defaults. I don't know when the timeout parameters and Thread Executor Size were introduced, but it turns out that the default value of 0 (zero) isn't healthy. :-/   Adding some values greater than zero at random, worked:        
          Hide
          fsteff Flemming Steffensen added a comment -

          Turned out to be a user error - and some badly chosen defaults during plugin upgrade.

          See comments.

          Show
          fsteff Flemming Steffensen added a comment - Turned out to be a user error - and some badly chosen defaults during plugin upgrade. See comments.

            People

            • Assignee:
              fsteff Flemming Steffensen
              Reporter:
              fsteff Flemming Steffensen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: