Skip to content

Commit c64a3f0

Browse files
committed
debugging FsBlobContainerTests::testCopy on ci
1 parent feb6367 commit c64a3f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/test/java/org/elasticsearch/common/blobstore/fs/FsBlobContainerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,14 +388,14 @@ public void testCopy() throws IOException {
388388
final var sourceBlobName = randomAlphaOfLengthBetween(1, 20).toLowerCase(Locale.ROOT);
389389
final var targetBlobName = randomAlphaOfLengthBetween(1, 20).toLowerCase(Locale.ROOT);
390390
final var contents = new BytesArray(randomByteArrayOfLength(randomIntBetween(1, 512)));
391-
sourceContainer.writeBlobAtomic(randomPurpose(), sourceBlobName, contents, true);
391+
sourceContainer.writeBlob(randomPurpose(), sourceBlobName, contents, true);
392392
sourceContainer.copyBlob(randomPurpose(), sourceBlobName, targetContainer, targetBlobName, true);
393393
assertThrows(
394394
FileAlreadyExistsException.class,
395395
() -> sourceContainer.copyBlob(randomPurpose(), sourceBlobName, targetContainer, targetBlobName, true)
396396
);
397397

398-
var targetContents = new BytesArray(targetContainer.readBlob(randomPurpose(), targetBlobName).readAllBytes());
398+
var targetContents = Streams.readFully(targetContainer.readBlob(randomPurpose(), targetBlobName));
399399
assertEquals(contents, targetContents);
400400
}
401401

0 commit comments

Comments
 (0)