File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
plugins/repository-s3/src
main/java/org/opensearch/repositories/s3
test/java/org/opensearch/repositories/s3 Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -680,7 +680,7 @@ public boolean equals(final Object o) {
680680 && Objects .equals (endpoint , that .endpoint )
681681 && protocol == that .protocol
682682 && proxySettings .equals (that .proxySettings )
683- && Objects . equals ( disableChunkedEncoding , that .disableChunkedEncoding )
683+ && disableChunkedEncoding == that .disableChunkedEncoding
684684 && Objects .equals (region , that .region )
685685 && Objects .equals (signerOverride , that .signerOverride )
686686 && Objects .equals (irsaCredentials , that .irsaCredentials );
Original file line number Diff line number Diff line change @@ -363,6 +363,8 @@ public List<Setting<?>> getSettings() {
363363 S3Repository .ACCESS_KEY_SETTING ,
364364 S3Repository .SECRET_KEY_SETTING ,
365365 S3ClientSettings .SIGNER_OVERRIDE ,
366+ // Fixed the bug in this line
367+ S3ClientSettings .DISABLE_CHUNKED_ENCODING ,
366368 S3ClientSettings .REGION ,
367369 S3ClientSettings .ROLE_ARN_SETTING ,
368370 S3ClientSettings .IDENTITY_TOKEN_FILE_SETTING ,
Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ public void testGetExecutorBuilders() throws IOException {
7575 );
7676 }
7777 assertTrue (plugin .getSettings ().contains (S3Repository .S3_ASYNC_HTTP_CLIENT_TYPE ));
78+ // New assertion for your bug fix
79+ assertTrue (plugin .getSettings ().contains (S3ClientSettings .DISABLE_CHUNKED_ENCODING ));
80+
7881 } finally {
7982 if (threadPool != null ) {
8083 terminate (threadPool );
You can’t perform that action at this time.
0 commit comments