Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix data transmission to ReBenchDB on timeout #160

Merged
merged 2 commits into from Sep 6, 2021
Merged

Conversation

smarr
Copy link
Owner

@smarr smarr commented Sep 6, 2021

With the Python 3 support, a bug sneaked in unnoticed.
While the initial HTTP request would use the data encoded as UTF-8 bytes, the retry after a timeout would use the original data string.
Didn't fix a parameter there.

After tracking it down, and fixing it, I refactored the code a little further, put it into a loop, and added a backoff to handle timeouts more gracefully.
The issue with ReBenchDB is that my server is just a little too busy, and the HTTP server had a rather tiny timeout.
The timeout got increased, but, the server is still busy, so...

Unrelated, this PR also adds a test to make sure that denoise has the expected interface.

Signed-off-by: Stefan Marr <git@stefan-marr.de>
- also make retry wait a little because we likely got a timeout

Signed-off-by: Stefan Marr <git@stefan-marr.de>
@smarr smarr added the Bug label Sep 6, 2021
@smarr smarr added this to the v1.1 - Denoise milestone Sep 6, 2021
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 81.619% when pulling 6614ce7 on denoise-support into 3489dfc on master.

@smarr smarr merged commit f5803d9 into master Sep 6, 2021
@smarr smarr deleted the denoise-support branch September 6, 2021 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants