Commit becd0c0
authored
* Handle status code 200 for s3 CMU response (#122815)
When a CopmleteMultipartUpload request fails after the initial 200
response, the status code of the failure response use to be not set and
hence got translated to status code 0. With #116212, we handle this case
accordingly. Since AWS SDK 1.12.691, the status code is now set to 200
instead of 0. This PR changes our error handling code accordingly.
Relates: #122431 Relates: #116212 Resolves: #122799
Relevant AWS SDK change
https://github.com/aws/aws-sdk-java/blame/430899c217f34fae63b35c77f4d9bfd361c9de77/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L3696-L3709
(cherry picked from commit 850249b)
# Conflicts:
# muted-tests.yml
* unmute
1 parent 49f14c8 commit becd0c0
File tree
2 files changed
+2
-6
lines changed- modules/repository-s3/src/main/java/org/elasticsearch/repositories/s3
2 files changed
+2
-6
lines changedLines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
884 | 884 | | |
885 | 885 | | |
886 | 886 | | |
887 | | - | |
| 887 | + | |
888 | 888 | | |
889 | 889 | | |
890 | | - | |
891 | | - | |
| 890 | + | |
892 | 891 | | |
893 | 892 | | |
894 | 893 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | | - | |
478 | | - | |
479 | | - | |
0 commit comments