@@ -158,15 +158,6 @@ protected Class<? extends Exception> unresponsiveExceptionType() {
158158 }
159159
160160 @ Override
161- protected BlobContainer createBlobContainer (
162- final @ Nullable Integer maxRetries ,
163- final @ Nullable TimeValue readTimeout ,
164- final @ Nullable Boolean disableChunkedEncoding ,
165- final @ Nullable ByteSizeValue bufferSize
166- ) {
167- return createBlobContainer (maxRetries , readTimeout , disableChunkedEncoding , bufferSize , null );
168- }
169-
170161 protected BlobContainer createBlobContainer (
171162 final @ Nullable Integer maxRetries ,
172163 final @ Nullable TimeValue readTimeout ,
@@ -265,7 +256,7 @@ public void testWriteBlobWithRetries() throws Exception {
265256 final int maxRetries = randomInt (5 );
266257 final CountDown countDown = new CountDown (maxRetries + 1 );
267258
268- final BlobContainer blobContainer = createBlobContainer (maxRetries , null , true , null );
259+ final BlobContainer blobContainer = createBlobContainer (maxRetries , null , true , null , null );
269260
270261 final byte [] bytes = randomBlobContent ();
271262 httpServer .createContext (downloadStorageEndpoint (blobContainer , "write_blob_max_retries" ), exchange -> {
@@ -315,7 +306,7 @@ public void testWriteBlobWithRetries() throws Exception {
315306 public void testWriteBlobWithReadTimeouts () {
316307 final byte [] bytes = randomByteArrayOfLength (randomIntBetween (10 , 128 ));
317308 final TimeValue readTimeout = TimeValue .timeValueMillis (randomIntBetween (100 , 500 ));
318- final BlobContainer blobContainer = createBlobContainer (1 , readTimeout , true , null );
309+ final BlobContainer blobContainer = createBlobContainer (1 , readTimeout , true , null , null );
319310
320311 // HTTP server does not send a response
321312 httpServer .createContext (downloadStorageEndpoint (blobContainer , "write_blob_timeout" ), exchange -> {
@@ -353,7 +344,7 @@ public void testWriteBlobWithExceptionThrownAtClosingTime() throws Exception {
353344 var maxRetries = randomInt (3 );
354345 var blobLength = randomIntBetween (1 , 4096 * 3 );
355346 var blobName = getTestName ().toLowerCase (Locale .ROOT );
356- var blobContainer = createBlobContainer (maxRetries , null , true , null );
347+ var blobContainer = createBlobContainer (maxRetries , null , true , null , null );
357348
358349 var uploadedBytes = new AtomicReference <BytesReference >();
359350 httpServer .createContext (downloadStorageEndpoint (blobContainer , blobName ), exchange -> {
@@ -400,7 +391,7 @@ public void testWriteLargeBlob() throws Exception {
400391 final boolean useTimeout = rarely ();
401392 final TimeValue readTimeout = useTimeout ? TimeValue .timeValueMillis (randomIntBetween (100 , 500 )) : null ;
402393 final ByteSizeValue bufferSize = ByteSizeValue .of (5 , ByteSizeUnit .MB );
403- final BlobContainer blobContainer = createBlobContainer (null , readTimeout , true , bufferSize );
394+ final BlobContainer blobContainer = createBlobContainer (null , readTimeout , true , bufferSize , null );
404395
405396 final int parts = randomIntBetween (1 , 5 );
406397 final long lastPartSize = randomLongBetween (10 , 512 );
@@ -501,7 +492,7 @@ public void testWriteLargeBlobStreaming() throws Exception {
501492 final boolean useTimeout = rarely ();
502493 final TimeValue readTimeout = useTimeout ? TimeValue .timeValueMillis (randomIntBetween (100 , 500 )) : null ;
503494 final ByteSizeValue bufferSize = ByteSizeValue .of (5 , ByteSizeUnit .MB );
504- final BlobContainer blobContainer = createBlobContainer (null , readTimeout , true , bufferSize );
495+ final BlobContainer blobContainer = createBlobContainer (null , readTimeout , true , bufferSize , null );
505496
506497 final int parts = randomIntBetween (1 , 5 );
507498 final long lastPartSize = randomLongBetween (10 , 512 );
@@ -615,7 +606,7 @@ public void testReadRetriesAfterMeaningfulProgress() throws Exception {
615606 0 ,
616607 randomFrom (1000 , Math .toIntExact (S3Repository .BUFFER_SIZE_SETTING .get (Settings .EMPTY ).getBytes ()))
617608 );
618- final BlobContainer blobContainer = createBlobContainer (maxRetries , null , true , ByteSizeValue .ofBytes (bufferSizeBytes ));
609+ final BlobContainer blobContainer = createBlobContainer (maxRetries , null , true , ByteSizeValue .ofBytes (bufferSizeBytes ), null );
619610 final int meaningfulProgressBytes = Math .max (1 , bufferSizeBytes / 100 );
620611
621612 final byte [] bytes = randomBlobContent ();
@@ -688,7 +679,7 @@ public void testReadDoesNotRetryForRepositoryAnalysis() {
688679 0 ,
689680 randomFrom (1000 , Math .toIntExact (S3Repository .BUFFER_SIZE_SETTING .get (Settings .EMPTY ).getBytes ()))
690681 );
691- final BlobContainer blobContainer = createBlobContainer (maxRetries , null , true , ByteSizeValue .ofBytes (bufferSizeBytes ));
682+ final BlobContainer blobContainer = createBlobContainer (maxRetries , null , true , ByteSizeValue .ofBytes (bufferSizeBytes ), null );
692683
693684 final byte [] bytes = randomBlobContent ();
694685
@@ -726,7 +717,7 @@ public void testReadWithIndicesPurposeRetriesForever() throws IOException {
726717 0 ,
727718 randomFrom (1000 , Math .toIntExact (S3Repository .BUFFER_SIZE_SETTING .get (Settings .EMPTY ).getBytes ()))
728719 );
729- final BlobContainer blobContainer = createBlobContainer (maxRetries , null , true , ByteSizeValue .ofBytes (bufferSizeBytes ));
720+ final BlobContainer blobContainer = createBlobContainer (maxRetries , null , true , ByteSizeValue .ofBytes (bufferSizeBytes ), null );
730721 final int meaningfulProgressBytes = Math .max (1 , bufferSizeBytes / 100 );
731722
732723 final byte [] bytes = randomBlobContent (512 );
@@ -819,7 +810,7 @@ public void handle(HttpExchange exchange) throws IOException {
819810
820811 public void testDoesNotRetryOnNotFound () {
821812 final int maxRetries = between (3 , 5 );
822- final BlobContainer blobContainer = createBlobContainer (maxRetries , null , true , null );
813+ final BlobContainer blobContainer = createBlobContainer (maxRetries , null , true , null , null );
823814
824815 final AtomicInteger numberOfReads = new AtomicInteger (0 );
825816 @ SuppressForbidden (reason = "use a http server" )
@@ -851,7 +842,7 @@ public void handle(HttpExchange exchange) throws IOException {
851842
852843 public void testSnapshotDeletesRetryOnThrottlingError () throws IOException {
853844 // disable AWS-client retries
854- final BlobContainer blobContainer = createBlobContainer (0 , null , true , null );
845+ final BlobContainer blobContainer = createBlobContainer (0 , null , true , null , null );
855846
856847 int numBlobsToDelete = randomIntBetween (500 , 3000 );
857848 List <String > blobsToDelete = new ArrayList <>();
@@ -871,7 +862,7 @@ public void testSnapshotDeletesRetryOnThrottlingError() throws IOException {
871862
872863 public void testSnapshotDeletesAbortRetriesWhenThreadIsInterrupted () {
873864 // disable AWS-client retries
874- final BlobContainer blobContainer = createBlobContainer (0 , null , true , null );
865+ final BlobContainer blobContainer = createBlobContainer (0 , null , true , null , null );
875866
876867 int numBlobsToDelete = randomIntBetween (500 , 3000 );
877868 List <String > blobsToDelete = new ArrayList <>();
@@ -908,7 +899,7 @@ public void testSnapshotDeletesAbortRetriesWhenThreadIsInterrupted() {
908899
909900 public void testNonSnapshotDeletesAreNotRetried () {
910901 // disable AWS-client retries
911- final BlobContainer blobContainer = createBlobContainer (0 , null , true , null );
902+ final BlobContainer blobContainer = createBlobContainer (0 , null , true , null , null );
912903
913904 int numBlobsToDelete = randomIntBetween (500 , 3000 );
914905 List <String > blobsToDelete = new ArrayList <>();
@@ -937,7 +928,7 @@ public void testNonSnapshotDeletesAreNotRetried() {
937928
938929 public void testNonThrottlingErrorsAreNotRetried () {
939930 // disable AWS-client retries
940- final BlobContainer blobContainer = createBlobContainer (0 , null , true , null );
931+ final BlobContainer blobContainer = createBlobContainer (0 , null , true , null , null );
941932
942933 int numBlobsToDelete = randomIntBetween (500 , 3000 );
943934 List <String > blobsToDelete = new ArrayList <>();
@@ -1016,7 +1007,7 @@ private Set<OperationPurpose> operationPurposesThatRetryOnDelete() {
10161007
10171008 public void testGetRegisterRetries () {
10181009 final var maxRetries = between (0 , 3 );
1019- final BlobContainer blobContainer = createBlobContainer (maxRetries , null , null , null );
1010+ final BlobContainer blobContainer = createBlobContainer (maxRetries , null , null , null , null );
10201011
10211012 interface FailingHandlerFactory {
10221013 void addHandler (String blobName , Integer ... responseCodes );
0 commit comments