-
Notifications
You must be signed in to change notification settings - Fork 12
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
Backoff timing verification can flake #115
Comments
Python also flakes on this test, because the shared gapic api-core library uses |
Oh yeah... this test was probably written against the C++ client. We should set up the test to pass in the "full jitter" case (0, N]. And by "we" I mean "someone other than me". 👃 👈
Not in bigtable1. We do it in other libraries though. For way too much context, see googleapis/google-cloud-cpp#8755 Footnotes
|
I think to support the "full jitter" case, the test should drop the time check: different clients use different default, so it's not possible to check the absolute value in an agnostic way. I will make the change to just use logging for now. |
I made the change: eaf9477 In your presubmit, please checkout the new release v0.0.2 |
Thanks!
The robots did it for us.... Nice! googleapis/google-cloud-cpp#12960 |
googleapis/google-cloud-cpp#12913
C++ has unit tests in our code that verify that the retry policy always increases. There is jitter (randomness) involved.
I think it is very likely that the computer running the build had a hiccup during the first attempt to add an extra few ms of slowness. And the backoff duration on the second attempt happened to be very close to the backoff duration of the first attempt. Thus the proxy detects a failure.
To bandaid, we can add a few ms of tolerance to the backoff expectations. But ultimately we are at the mercy of a time based test.
The text was updated successfully, but these errors were encountered: