From 862fabb266e6dd0624e05990573251bd5d9d7549 Mon Sep 17 00:00:00 2001 From: ava huang <87732014+avahuang0429@users.noreply.github.com> Date: Wed, 30 Mar 2022 18:36:31 -0700 Subject: [PATCH] add recommendation for customer (#937) Co-authored-by: Ava Huang --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2325da47..62690b18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -159,6 +159,13 @@ [Milestone#46](https://github.com/awslabs/amazon-kinesis-client/milestone/45) * Updating the AWS SDK version to 2.10.56. * [PR#679](https://github.com/awslabs/amazon-kinesis-client/pull/679) + * NOTE: SDK has a known connection teardown issue when multiple H2 streams are used within a connection. This might result in shard consumers sticking to a stale service host and not progressing. If your shard consumer gets stuck, use the following configuration as a workaround. This configuration might result in up to 5X increase in total connections. + ``` + KinesisAsyncClient kinesisClient = KinesisAsyncClient.builder() + .region(region) + .httpClientBuilder(NettyNioAsyncHttpClient.builder().maxConcurrency(Integer.MAX_VALUE).http2Configuration(Http2Configuration.builder().maxStreams(1).build()) + .build() + ``` * Making ShardConsumerTest resilient to race conditions. * [PR#668](https://github.com/awslabs/amazon-kinesis-client/pull/668) * Updating integration test naming.