WIP: Support HTTP2 protocol + Kinesis integration test puzzle#830
WIP: Support HTTP2 protocol + Kinesis integration test puzzle#830jtjeferreira wants to merge 13 commits intoapache:mainfrom
Conversation
exceptions in toPekkoRequest should be wrapped in a future failed
SdkAsyncHttpClientH1TestSuite uses netty to simulate a server...
|
Unfortunately, I don't have an AWS account to test those Kinesis tests against. |
|
By comparing the logs of ✅ ❌ Important bits:
So I think that this is a bug in http2 support of pekko-http... cc @jrudolph @raboof ? |
|
Is it possible to also support HTTP 1.1? It might be a nice option to be able to use a HTTP 1.1 client if there are issues with the HTTP/2 one. |
Yes, HTTP 1.1 is supported and the default except for the kinesis client is the only that "forces" the use of HTTP/2. However, before this PR the |
depends on #829
This PR adds support for HTTP/2 protocol in AWS SDK HttpClient. Since the pekko-http support for http/2 is different than for http (it only support " Host-Level" and not "Request-Level" API) the implementation is a bit more tricky.
However, I found a problem when writing integration tests: the test
KinesisITTest#list streams in parallelruns successfully in about 2 seconds, but if I increase number of clients from 5 to 6 it gets stuck and takes more than 60s to finish...Can someone confirm they see this same behavior:
aws-spi-pekko-http/it:testOnly org.apache.pekko.stream.connectors.awsspi.kinesis.KinesisITTest -- -z "list streams"