Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-36335

plugin.jira-integration.remote.timeout.socket is ignored, so some calls to JIRA use an unconfigurable 10 second timeout

XMLWordPrintable

      Stacktrace:

      2015-02-03 14:52:00,123 WARN [http-bio-8080-exec-2] [internal.integration.jira.DefaultJiraService] communicateWithJira Problem communicating with JIRA
       -- url: /confluence/rest/jira-integration/1.0/servers/c823ccbc-bcca-3d5d-9169-3f12fb15e747/projects | userName: admin | referer: http://localhost:8080/confluence/pages/createpage.action?spaceKey=ds&fromPageId=589832
      com.atlassian.sal.api.net.ResponseException: java.net.SocketTimeoutException: Read timed out
      	at com.atlassian.sal.core.net.HttpClientRequest.executeAndReturn(HttpClientRequest.java:376)
      	at com.atlassian.plugins.rest.module.jersey.JerseyRequest.executeAndReturn(JerseyRequest.java:161)
      	at com.atlassian.applinks.core.auth.ApplicationLinkRequestAdaptor.execute(ApplicationLinkRequestAdaptor.java:84)
      	at com.atlassian.applinks.core.auth.oauth.ThreeLeggedOAuthRequest.execute(ThreeLeggedOAuthRequest.java:54)
      	at com.atlassian.internal.integration.jira.DefaultJiraService$5.apply(DefaultJiraService.java:451)
      	at com.atlassian.internal.integration.jira.DefaultJiraService$5.apply(DefaultJiraService.java:445)
      	at com.atlassian.internal.integration.jira.DefaultJiraService.communicateWithJira(DefaultJiraService.java:702)
      	at com.atlassian.internal.integration.jira.DefaultJiraService.getProjectsAsJson(DefaultJiraService.java:445)
      	at com.atlassian.internal.integration.jira.rest.JiraServerResource.getProjectsMeta(JiraServerResource.java:43)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      

      Steps to Reproduce:

      1. Start up JIRA from source in debug mode.
      2. Start up Confluence, and create an application link between the two instances
      3. Set the Socket Timeout in General Configuration to, for example, 20000 (20 seconds)
      4. Create a project and issue in JIRA
      5. Set a breakpoint in JIRA anywhere that's convenient and hit the breakpoint
      6. Create a new page in Confluence and open up the network tab of your Browser
      7. Create a JIRA Issues Macro in Confluence and search for the new project. Looking in the network tab of the browser's inspector, you'll see the following URL timing out after 10 seconds:
        http://localhost:8090/jira/rest/api/2/issue/createmeta?projects.issuetypes

        (Even after applying the workaround from https://jira.atlassian.com/browse/CONF-36316)

      If you apply the plugin.jira-integration.remote.timeout.socket system property (which is denoted in milliseconds), the timeout remains at 10 seconds (10000ms), as the ConfluenceJiraSettings class doesn't provide a useful implementation of getProperty()

        1. highlighted-error.log
          26 kB
        2. jira-macro-error.log
          26 kB
        3. highlighted-error.png
          highlighted-error.png
          212 kB
        4. jira-macro-error.png
          jira-macro-error.png
          152 kB
        5. Applinks-Error.mp4
          1.74 MB

              mleizerovich Maxim Leizerovich
              ldally lachland
              Votes:
              36 Vote for this issue
              Watchers:
              42 Start watching this issue

                Created:
                Updated: