-
Notifications
You must be signed in to change notification settings - Fork 869
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
SdkClientException: Unable to execute HTTP request: Only one connection receive subscriber allowed #2444
Comments
@nikitsenka a quick search for
Looking at the logs the error is returned with a http status code 500, which the SDK will retry, as you mentioned. This doesn't look like an issue with the SDK itself, but if you'd like us to investigate further please provide a self-contained sample code we can use to reproduce. |
@debora-ito thanks for the links. The only helpful is the first one but unfortunately it is a WebClient case and we are using AWS SDK NettyNio client. Please see the code snippet below. It is not compilable but just to show the usage of SDK.
Any recommendations will be helpful |
We are using s3AsyncClientMap to store client object in memory and reuse them for subsequent requests from the same client. The idea is to not create client every time but reuse existing one to improve performance. Not sure is it really make sense. Maybe we can just create new client for each request. I did't found any example or recommendation regarding it on AWS SDK User guide. Will be great if you can suggest better approach or provide some example for it. |
@debora-ito any ideas? |
I have same issue, any solution?
|
@nikitsenka I'm sorry, getting back to this issue after a long time. Are you still seeing the error? It is recommended to reuse the same client whenever possible, but if you need different client configurations than you need to create different clients. Creating a new client for every request is not recommended. I don't see any obvious problems with your implementation of Marking this to auto-close soon, but let us know if you're still getting this error. |
…6bcb34827 Pull request: release <- staging/045a76ff-d694-4e30-8e43-f0b6bcb34827
SdkClientException: Unable to execute HTTP request: Only one connection receive subscriber allowed
We are using java AWS SDK v2 for sending data to s3 using Java Http POST endpoint inside Reactive Spring Boot Webflux application.
Describe the issue
This error occurs 1-3 times in a week and only in production where the load is approx 10-30 RPS. It causes the dataloss as 1-3 HTTP json messages are not delivered. The SDK retry looks like applied for this case.
Steps to Reproduce
The reason of the issue is unknown
Unfortunately it happens only in production and not connected with the user data. Any recommendation how to simulate the issue in local environment will be really helpful.
Your Environment
Full log log.txt
Snippet from the log:
Metrics details
The text was updated successfully, but these errors were encountered: