Skip to content

Add specific http configurations for cloudwatch and s3 #1450

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
merged 2 commits into from
Oct 4, 2019

Conversation

zoewangg
Copy link
Contributor

@zoewangg zoewangg commented Oct 2, 2019

Description

  • add cloudwatch specific http configurations, specifically reducing connectionMaxIdleTime
  • Add s3 specific http configurations, specifically reducing connectionMaxIdleTime

Motivation and Context

#1380 , #1122

Testing

Added low TPS long interval stability tests. Verified the tests failed w/o the changes and succeeded w the change.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed
  • A short description of the change has been added to the CHANGELOG
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license


protected static CloudWatchAsyncClient cloudWatchAsyncClient =
CloudWatchAsyncClient.builder()
.httpClientBuilder(NettyNioAsyncHttpClient.builder().maxConcurrency(CONCURRENCY))
Copy link
Contributor

Choose a reason for hiding this comment

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

I forget how this works...does this one merge the custom config?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup

// } finally {
// S3AsyncStabilityTest.cleanup();
// }
// try {
Copy link
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Those are for testing purpose. I'll move the code snippets to javadoc section.

@codecov-io
Copy link

codecov-io commented Oct 2, 2019

Codecov Report

Merging #1450 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1450      +/-   ##
============================================
+ Coverage     73.73%   73.74%   +<.01%     
  Complexity      684      684              
============================================
  Files           847      848       +1     
  Lines         25990    25995       +5     
  Branches       1992     1992              
============================================
+ Hits          19165    19171       +6     
  Misses         5962     5962              
+ Partials        863      862       -1
Flag Coverage Δ Complexity Δ
#unittests 73.74% <100%> (ø) 684 <0> (ø) ⬇️
Impacted Files Coverage Δ Complexity Δ
...rvices/s3/internal/S3HttpConfigurationOptions.java 100% <100%> (ø) 0 <0> (?)
...o/netty/internal/http2/HttpOrHttp2ChannelPool.java 81.72% <0%> (+1.07%) 0% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9699d19...910c84b. Read the comment docs.

@zoewangg zoewangg force-pushed the zoewang-cwInvestigation branch from 7eb7710 to b229117 Compare October 3, 2019 21:44
@zoewangg zoewangg force-pushed the zoewang-cwInvestigation branch from b229117 to f1473cf Compare October 3, 2019 22:31
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.

3 participants