[Feature Branch] Upgrade AWS SDK v2 library to the latest version#31224
[Feature Branch] Upgrade AWS SDK v2 library to the latest version#31224
Conversation
…g feature that has been deleted.
…m is not obvious to work package by package
…g feature that has been deleted.
…m is not obvious to work package by package
|
This pull request is now in conflicts. Could you fix it? 🙏 |
|
@kaiyan-sheng the PR seems almost complete I'd like to review the validity my initial comments: #31224 (comment) and #31224 (comment) would you mind checking them? thanks |
francescayeye
left a comment
There was a problem hiding this comment.
here how I implemented pagination error handling on the s3 objects listing:
https://github.com/elastic/beats/pull/31224/files#diff-c6357a5d68a965123a3b3dc3cbf0bddfe7a5628dceb5327885da33f1735a3facR158-R173
it might be too defensive, up to you if using the same pattern for the two paginators in this commit
in the case of s3 ListObjectsPaginator.NextPage() an error can be caused by !ListObjectsPaginator.HasMorePages(). we should never reach such state since the for loop would have already exited.
if the cwlogs LogEventsPaginator.NextPage() and DescribeLogGroupsPaginator.NextPage() do not have an error caused by !HasMorePages() no need of the extra if
|
This pull request is now in conflicts. Could you fix it? 🙏 |
|
This pull request is now in conflicts. Could you fix it? 🙏 |
I checked the aws-sdk-go-v2, both |
|
This pull request is now in conflicts. Could you fix it? 🙏 |
|
This pull request is now in conflicts. Could you fix it? 🙏 |
|
This pull request is now in conflicts. Could you fix it? 🙏 |
|
/test |
What does this PR do?
This PR upgrades the current AWS SDK library we use to the latest version. It should include all the latest fixes from AWS as well as many corrections in our code to keep working with it.
Consider this a feature branch where smaller areas of our code will be gradually integrated, like metricsets and inputs on different PR's.
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Related issues
Status
Break down tasks for testing this PR