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: StreamWriter hang when we reach the inflight limit control and is doing a retry #799
Conversation
…we try to resend a message
Codecov Report
@@ Coverage Diff @@
## master #799 +/- ##
============================================
+ Coverage 80.64% 81.13% +0.48%
- Complexity 992 996 +4
============================================
Files 74 74
Lines 5333 5339 +6
Branches 398 413 +15
============================================
+ Hits 4301 4332 +31
+ Misses 848 837 -11
+ Partials 184 170 -14
Continue to review full report at Codecov.
|
} catch (IOException | InterruptedException e) { | ||
LOG.info("Got exception while retrying: " + e.toString()); | ||
inflightBatch.onFailure(e); | ||
abortInflightRequests(e); |
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.
can we add test coverage for catching these lines?
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.
good point. I tried this morning but couldn't figure out a good way to hit the code. I will play around a little more, but could we proceed with this first. Datalfow is waiting for a fix.
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.
SG
🤖 I have created a release \*beep\* \*boop\* --- ### [1.8.5](https://www.github.com/googleapis/java-bigquerystorage/compare/v1.8.4...v1.8.5) (2021-01-17) ### Bug Fixes * StreamWriter hang when we reach the inflight limit control and is doing a retry ([#799](https://www.github.com/googleapis/java-bigquerystorage/issues/799)) ([f8f9770](https://www.github.com/googleapis/java-bigquerystorage/commit/f8f97701e5ca698a170a1d3b6ecb3886e186f9d5)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here>☕️