Cannot post comments to some pull requests

We have just installed bitbucket and JIRA for the first time on our server. Pull requests are showing a few odd behaviours. 

1. We are unable to comment on some pull requests. Code-line comments work fine, but the top level comment tool will time out for some users, posting "The server didn't respond. You may retry your request when the server comes back up."

Looking at the bitbucket server log, we see two side-by-side log messages that are seemingly related, where I've obscured the project name and user data:

 

2017-05-18 14:43:58,013 DEBUG [http-nio-7990-exec-3199] <usrname and identification ip> "POST /rest/api/latest/projects/<projectname>/repos/<reponame>/pull-requests/2/comments HTTP/1.1" c.a.s.i.e.TransactionAwareEventPublisher Deferring publishing for PullRequestCommentAddedEvent until AFTER_COMMIT

2017-05-18 14:43:58,014 DEBUG [http-nio-7990-exec-3199] <usrname and identification ip> "POST /rest/api/latest/projects/<projectname>/repos/<reponame>/pull-requests/2/comments HTTP/1.1" c.a.s.i.e.TransactionAwareEventPublisher Deferring publishing for PullRequestCommentActivityEvent until AFTER_COMMIT


This seems very odd to me. What is this 'deferal until "AFTER_COMMIT"?

2. We have a second issue with pull requests. I bring it up here, not to fork and try to ask two questions at once, but because it could be a related problem.  Our pull requests are not updating to show later commits. Any commit which occured after the PR doesn't list.  The problematic comment posting may be only on PRs that have this second issue, but we haven't exhaustively tested yet.

 

Any ideas?

1 answer

1 accepted

Upgrade to 5.0.1 solves both issues.

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

706 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot