Skip to content

Conversation

@tlrx
Copy link
Member

@tlrx tlrx commented Feb 26, 2025

This pull request adds a unit test to demonstrate a specific behavior of the AWS SDKv1, which closes the InputStream used to upload a blob only after the HTTP request has been sent (this is to accomodate for retries). The SDK then swallows any exception thrown when closing the InputStream which has the effect to hide any potential CorruptIndexException that could have been detected at that time.

Relates ES-10931

@tlrx tlrx added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v9.1.0 labels Feb 26, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination Meta label for Distributed Coordination team label Feb 26, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination)

@tlrx tlrx requested review from bcully and fcofdez February 26, 2025 15:03
Copy link
Contributor

@bcully bcully left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@fcofdez fcofdez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tlrx tlrx merged commit e6eb8ef into elastic:main Feb 27, 2025
17 checks passed
@tlrx
Copy link
Member Author

tlrx commented Feb 27, 2025

Thanks Brendan & Francisco!

DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Apr 2, 2025
Reverts the test added in elastic#123505 - this is not behaviour on which we
rely any more, and it does not apply with SDKv2 anyway.
DaveCTurner added a commit that referenced this pull request Apr 2, 2025
Reverts the test added in #123505 - this is not behaviour on which we
rely any more, and it does not apply with SDKv2 anyway.
andreidan pushed a commit to andreidan/elasticsearch that referenced this pull request Apr 9, 2025
Reverts the test added in elastic#123505 - this is not behaviour on which we
rely any more, and it does not apply with SDKv2 anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed Coordination Meta label for Distributed Coordination team >test Issues or PRs that are addressing/adding tests v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants