-
Notifications
You must be signed in to change notification settings - Fork 859
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
Throws IOException for an h2 connection acquiring race condition #1614
Conversation
b4b739d
to
e9d93a4
Compare
if (!connection.isActive()) { | ||
return false; | ||
} | ||
|
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.
Do we know that this actually helps, or are we just guessing?
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.
As discussed offline, the check does not cover for all cases and we need to figure out a better way to reduce the race condition. Removed it for now.
… gets picked up at the same time it gets closed
e9d93a4
to
ca6fb14
Compare
SonarCloud Quality Gate failed. 0 Bugs |
Codecov Report
@@ Coverage Diff @@
## master #1614 +/- ##
============================================
+ Coverage 75.69% 75.69% +<.01%
Complexity 682 682
============================================
Files 905 905
Lines 28389 28389
Branches 2257 2257
============================================
+ Hits 21488 21490 +2
+ Misses 5880 5877 -3
- Partials 1021 1022 +1
Continue to review full report at Codecov.
|
…3b717e14f Pull request: release <- staging/31290513-fea1-4560-8201-54a3b717e14f
…s picked up at the same time it gets closed
Description
Reduce the chances of the race condition where an HTTP2 connection gets reused at the same time it gets inactiveThrow
IOException
instead ofIllegalStatementException
so the failed requests can be retried.Testing
Added unit tests
Screenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsLicense