-
Notifications
You must be signed in to change notification settings - Fork 906
Slow first call while using multiple SqsAsyncClient
because of underlining io.netty.handler.timeout.ReadTimeoutException
#2146
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
Comments
here is more information about the issue but with different results. In our test we are trying to create a new SQS queue with a unique name and sometimes it results in the following error
There is nothing special in this test - we just wrapped
Here is a full log
|
After further investigation, it's appeared to be an issue with LocalStack version used in our tests ( |
|
@amrynsky thank you for the follow-up. |
…b2a0f555e Pull request: release <- staging/05f6b59e-a924-4821-afe0-370b2a0f555e
Slow first call while using multiple
SqsAsyncClient
because of underliningio.netty.handler.timeout.ReadTimeoutException
Details
We are using
SqsAsyncClient
and observed strange behavior while using multiple clients. In the following code, the first call toclient2
is always slow taking ~30secHere is a log from our test:
in DEBUG logs we see the first HTTP call of the new client always results in
io.netty.handler.timeout.ReadTimeoutException
. It works after retry and all subsequent calls are also good.Steps to Reproduce
Here is a code snippet to reproduce the issue.
Possible Solution
Need to look into code to understand the root cause
Context
This is not real use case because in our service we are sharing the same client across different components. But it could be relevant for some use cases in the future - for example, creating a client per region. We came across this while writing unit tests where we create a new client in
@BeforeEach
.Environment
The text was updated successfully, but these errors were encountered: