Skip to content
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

seperate aws-sdk && use new sdk #1780

Merged
merged 1 commit into from
Aug 5, 2022
Merged

seperate aws-sdk && use new sdk #1780

merged 1 commit into from
Aug 5, 2022

Conversation

h0hmj
Copy link
Contributor

@h0hmj h0hmj commented Aug 2, 2022

Signed-off-by: h0hmj h0hmjcn@gmail.com

What problem does this PR solve?

upgrading aws-sdk-cpp version

Problem Summary:

What is changed and how it works?

What's Changed:

  1. upgrade aws-sdk-cpp to v1.9.x
  2. using s3-crt-client to replace s3-client

How it Works:

Side effects(Breaking backward compatibility? Performance regression?):

  1. dns resolver of s3 endpoint is necessary, ip or custom port is not supported

Check List

  • Relevant documentation/comments is changed or added
  • I acknowledge that all my contributions will be made under the project's license

@h0hmj
Copy link
Contributor Author

h0hmj commented Aug 4, 2022

there are lots of old bugs.

  1. something like create a client, but not release it
  2. incorrect sdk api init/shutdown
  3. no default value of a struct

current code is hard to read, need refactor

Signed-off-by: h0hmj <h0hmjcn@gmail.com>
@h0hmj
Copy link
Contributor Author

h0hmj commented Aug 5, 2022

recheck

AWS_SDK_OPTIONS.ioOptions.clientBootstrap_create_fn = []() {
Aws::Crt::Io::EventLoopGroup eventLoopGroup(0, 1);
Aws::Crt::Io::DefaultHostResolver defaultHostResolver(
eventLoopGroup, 8 /* maxHosts */, 300 /* maxTTL */);
Copy link
Contributor

Choose a reason for hiding this comment

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

hard code, need use form option?

@h0hmj h0hmj requested a review from wu-hanqing August 5, 2022 09:47
@ilixiaocui ilixiaocui merged commit 494dc27 into opencurve:master Aug 5, 2022
@h0hmj h0hmj deleted the new-aws-sdk branch May 30, 2023 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants