You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[7.15] Fix AzureBlobStore#convertStreamToByteBuffer chunking in Windows (elastic#78775)
Today we are using Math.ceil in order to calculate the number of
chunks in the request. Since we cast the values to a double...
there be dragons. This could cause issues depending on the platform.
This commit uses good old integers to compute the number of parts.
Backport of elastic#78772
Copy file name to clipboardExpand all lines: plugins/repository-azure/src/test/java/org/elasticsearch/repositories/azure/AzureBlobContainerRetriesTests.java
+20-2Lines changed: 20 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -329,8 +329,11 @@ public void testWriteBlobWithRetries() throws Exception {
329
329
publicvoidtestWriteLargeBlob() throwsException {
330
330
finalintmaxRetries = randomIntBetween(2, 5);
331
331
332
-
finalbyte[] data = randomBytes((int) ByteSizeUnit.MB.toBytes(10));
0 commit comments