Skip to content

Commit 57030d2

Browse files
authored
Backport #115197 (#115207)
Backport #115197 Closes #115318
1 parent ade82f2 commit 57030d2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/framework/src/main/java/org/elasticsearch/repositories/blobstore/AbstractBlobContainerRetriesTestCase.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,8 @@ protected void sendIncompleteContent(HttpExchange exchange, byte[] bytes) throws
403403
if (bytesToSend > 0) {
404404
exchange.getResponseBody().write(bytes, rangeStart, bytesToSend);
405405
}
406-
if (randomBoolean()) {
407-
exchange.getResponseBody().flush();
408-
}
406+
// Since JDK23 we need to always flush. See https://bugs.openjdk.org/browse/JDK-8331847.
407+
exchange.getResponseBody().flush();
409408
}
410409

411410
/**

0 commit comments

Comments
 (0)