-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Fix S3RepositoryAnalysisRestIT
#126593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
elasticsearchmachine
merged 10 commits into
elastic:main
from
DaveCTurner:2025/04/10/fix-copy-object-repo-analysis
Apr 10, 2025
Merged
Fix S3RepositoryAnalysisRestIT
#126593
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
03690fb
Fix `S3RepositoryAnalysisRestIT`
DaveCTurner d92092f
Update docs/changelog/126593.yaml
DaveCTurner ca89288
Must synchronize entire complete-upload process
DaveCTurner 00d9f7a
CI poke
DaveCTurner 5259a8e
Merge branch 'main' into 2025/04/10/fix-copy-object-repo-analysis
DaveCTurner 2f6a67d
Merge branch 'main' into 2025/04/10/fix-copy-object-repo-analysis
DaveCTurner 4584b3d
Catch all exceptions
DaveCTurner a2800dc
Delete docs/changelog/126593.yaml
DaveCTurner 46fb9bf
Merge branch 'main' into 2025/04/10/fix-copy-object-repo-analysis
DaveCTurner 8526a8b
Merge branch 'main' into 2025/04/10/fix-copy-object-repo-analysis
DaveCTurner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd hit this during my own testing and thought I'd fixed it in
copyBlob
(so that it would translate for single part as well). I am slapping my head noticing now thatexecuteMultipart
is wrappingAmazonClientException
inIOException
so this doesn't actually kick in on the multipart copy path, but I wonder if it's better to unwrap back incopyBlob
, or to hoist the wrapping out ofexecuteMultipart
intowriteBlob
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I played around with that but it ends up being a bit weird catching a 404 in
writeBlob
and friends since it doesn't really make sense for a single upload, and only makes sense for multipart uploads if they are aborted concurrently. I'm going to leave it as it is for now.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I'd meant not wrapping
AmazonServiceException
intoIOException
inexecuteMultipart
, but rather inwriteBlob
. That way this 404 handler here could just disappear, since thecopyBlob
handler would then handle it. But it's a trivial difference really.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, I guess you mean that multipart upload (not copy) can also return a 404 (I suppose if the upload itself is cancelled while parts are being uploaded). I don't think we were catching that before, but if that's the issue then I see what you mean (though I don't know if a writeBlob caller would make the distinction).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah maybe we can tidy this up a bit but I'm going to keep this PR focussed on just getting the SDKv2 tests passing again