3424: PUT request on reviews always last 10 minuts.

wild****@gmai***** (Google Code) (Is this you? Claim this profile.)
June 18, 2014
What version are you running?
2.0.2

What's the URL of the page containing the problem?
The URL is not accessible on Internet

What steps will reproduce the problem?
1.Post a review
2.Publish it
3.Wait 10 minuts

What is the expected output? What do you see instead?
The expected output is to publish a review quickly, instead it print "loading..." for 10 minuts.

What operating system are you using? What browser?
Linux Debian stable (7.4) / chrome on linux Version 35.0.1916.114

Please provide any additional information below.
When I post a review, the steps are : 

1 - GET the draft (=> lead to 404 error, see screenshot)
2 - POST the review (=> create the reply and return the id 10 here)
3 - PUT the review with "public": true (=> publish the review, lead to 200 OK but last 10 minuts!)

The result is fine, but the last PUT last 10 minuts.

If I do not wait and refresh the page, the result is fine, so the PUT request is handled correctly and quickly. 

In the apache log file I have : 

[18/Jun/2014:09:32:06 +0000] "GET /api/review-requests/3/reviews/1/replies/draft/?1403083927028&api_format=json HTTP/1.1" 404 531 "http://rb.local/r/3/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36"

[18/Jun/2014:09:32:06 +0000] "POST /api/review-requests/3/reviews/1/replies/ HTTP/1.1" 201 937 "http://rb.local/r/3/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36"

[18/Jun/2014:09:34:24 +0000] "PUT /api/review-requests/3/reviews/1/replies/10/ HTTP/1.1" 200 837 "http://rb.local/r/3/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36"

If more info is needed, just ask.

Thank you
chipx86
#1 chipx86
This is almost always due to an issue with the mail server configuration. When setting public=1, we go through the publish process, which involves sending out the e-mails. That's a synchronous operation. If that's slow for some reason, then the entire publish will take a while.

I'd investigate what's happening there first. Maybe try disabling e-mail temporarily and seeing if the problem goes away.

Extensions that hook into the publishing process can also cause this.
#4 wild****@gmai***** (Google Code) (Is this you? Claim this profile.)
OK, it was due to the mailserver slowness.
Not a reviewboard bug so. It can be closed.

Thank you !

(It may be better if the sending of the mail was asynchronous)
david
#5 david
  • +SetupIssue