Bitbucket returns error 500 to JIRA DVCS due to expired memcache on Bitbucket Cloud

XMLWordPrintable

    • 7.09
    • 4
    • Severity 3 - Minor

      Summary

      When JIRA DVCS connector is performing a long synchronisation from Bitbucket Cloud, memcache from Bitbucket side is expiring. Bitbucket returns error 500 to Jira.

      Environment

      • Bitbucket Cloud, syncing with JIRA Software (using DVCS connector)

      Steps to Reproduce

      1. In JIRA Software, link Bitbucket Cloud under the DVCS account configuration
      2. JIRA will then start adding the corresponding repository
      3. Under certain circumstances, sometimes JIRA fails to perform the synchronisation and Bitbucket Cloud returns error 500

      Expected Results

      Bitbucket doesn't return error 500

      Actual Results

      JIRA DVCS connector is not aware of the memcache expiring and failed to re-establish a reconnection. The following error occurs in the logs, showing that Bitbucket returns error 500:

      2018-08-31 11:20:38,363 DVCSConnector.MessageExecutor:thread-15 ERROR ServiceRunner     [c.a.j.p.d.service.message.MessageConsumer] Synchronization failed: {"type": "error", "error": {"message": "Traversal state lost. Unable to resume."}} (Sentry: N/A)
      com.atlassian.jira.plugins.dvcs.spi.bitbucket.clientlibrary.request.BitbucketRequestException$InternalServerError_500: {"type": "error", "error": {"message": "Traversal state lost. Unable to resume."}} (Sentry: N/A)
      	at com.atlassian.jira.plugins.dvcs.spi.bitbucket.clientlibrary.request.BaseRemoteRequestor.checkAndCreateRemoteResponse(BaseRemoteRequestor.java:270)
      	at com.atlassian.jira.plugins.dvcs.spi.bitbucket.clientlibrary.request.BaseRemoteRequestor.request(BaseRemoteRequestor.java:226)
      	at com.atlassian.jira.plugins.dvcs.spi.bitbucket.clientlibrary.request.BaseRemoteRequestor.requestWithoutPayload(BaseRemoteRequestor.java:210)
      	at com.atlassian.jira.plugins.dvcs.spi.bitbucket.clientlibrary.request.BaseRemoteRequestor.lambda$getWithRetry$0(BaseRemoteRequestor.java:131)
      	at com.atlassian.jira.plugins.dvcs.spi.bitbucket.clientlibrary.client.BadRequestRetryer.retry(BadRequestRetryer.java:27)
      	at com.atlassian.jira.plugins.dvcs.spi.bitbucket.clientlibrary.client.BadRequestRetryer.retry(BadRequestRetryer.java:20)
      

            Assignee:
            Unassigned
            Reporter:
            Marko Filipan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: