-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Always flush response body in AbstractBlobContainerRetriesTestCase#sendIncompleteContent with JDK23 #115197
Always flush response body in AbstractBlobContainerRetriesTestCase#sendIncompleteContent with JDK23 #115197
Conversation
…ndIncompleteContent with JDK23
Pinging @elastic/es-distributed (Team:Distributed) |
@@ -418,7 +418,9 @@ protected int sendIncompleteContent(HttpExchange exchange, byte[] bytes) throws | |||
if (bytesToSend > 0) { | |||
exchange.getResponseBody().write(bytes, rangeStart, bytesToSend); | |||
} | |||
if (randomBoolean()) { | |||
if (randomBoolean() || Runtime.version().feature() >= 23) { |
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.
The "fix" should be only temporary and for a specific version, so I'd rather not always flush.
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
I think you'll want to backport this to 7.x?
// For now in JDK23 we need to always flush. See https://bugs.openjdk.org/browse/JDK-8331847. | ||
// TODO: remove the JDK version check once that bug is fixed |
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.
It's not a bug but rather intended behaviour as an optimization if I understand the jdk issue correctly.
💔 Backport failedThe backport operation could not be completed due to the following error:
You can use sqren/backport to manually backport by running |
…ndIncompleteContent with JDK23 (elastic#115197) Resolves elastic#115172
…ndIncompleteContent with JDK23 (elastic#115197) Resolves elastic#115172
…ndIncompleteContent with JDK23 (elastic#115197) Resolves elastic#115172
…ndIncompleteContent with JDK23 (#115197) (#115441) Resolves #115172 Co-authored-by: Pooya Salehi <[email protected]>
…ndIncompleteContent with JDK23 (elastic#115197) Resolves elastic#115172
…ndIncompleteContent with JDK23 (elastic#115197) Resolves elastic#115172
…ndIncompleteContent with JDK23 (#115197) (#115680) Resolves #115172 Co-authored-by: Pooya Salehi <[email protected]>
…ndIncompleteContent with JDK23 (elastic#115197) Resolves elastic#115172
Resolves #115172