-
Notifications
You must be signed in to change notification settings - Fork 97
chore(fix): unflake MetricsTracerTest #313
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #313 +/- ##
=========================================
Coverage 80.69% 80.69%
Complexity 1049 1049
=========================================
Files 99 99
Lines 6541 6541
Branches 344 344
=========================================
Hits 5278 5278
Misses 1082 1082
Partials 181 181 Continue to review full report at Codecov.
|
I dont think this will fix the flakiness. I think the issue is that there is a race between the server thread (the emulator) and the client recording the duration: client: starts 2 timers (first response, overall op) and sends request
server: finishes the call if the client won the race then timer will not be greater than overall timer - afterSleep, however if the server won the race then this condition will not be true. I think the easiest fix is to add some slop to: something like: |
...bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/metrics/MetricsTracerTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Fixes #310