-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Medium
-
None
-
Affects Version/s: 7.9.2, 7.12.1
-
Component/s: Ecosystem - Connect JIRA Integration
-
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
- In JIRA Software, link Bitbucket Cloud under the DVCS account configuration
- JIRA will then start adding the corresponding repository
- 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)