Skip to content

Commit 63087c7

Browse files
committed
force failure
1 parent b575d9a commit 63087c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3BlobContainer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,8 @@ private byte[] md5DigestOfInputStream(final InputStream inputStream, long remain
600600
final MessageDigest md5 = MessageDigest.getInstance("MD5");
601601
// update in chunks to bound memory usage while amortizing read cost
602602
byte[] buffer = new byte[65536];
603+
// XXX force fail
604+
md5.update((byte) 'x');
603605
int bytesRead;
604606
do {
605607
final int toRead = (int) Math.min(remaining, buffer.length);

0 commit comments

Comments
 (0)