-
Notifications
You must be signed in to change notification settings - Fork 657
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
Error using Spring cloud gateway - IllegalStateException: channel not registered to an event loop - Client waits infinite for response #3559
Comments
We started facing the same issue in Spring Cloud Gateway when Renovate Bot upgraded Spring Boot version from 3.2.11 to 3.2.12. It seems to happen only with large or chunked requests. I wonder if it was introduced with this PR #3459 |
…nfiguration DisposedChannel is effective when request/response is terminated and replaces the actual channel. At that point DisposedChannelConfig#setAutoRead must be non operational as the inbound has already been read and the actual channel has already set auto-read to true. The issue is also observed with the reproducible example provided by #3495 Fixes #3559
@FrankKlOS Thanks for the detailed description. This is fixed with #3581. It would be great if you can test the snapshot version. |
Hi - I have tested with a locally build 1.2.2-SNAPSHOT version of reactor-netty and can confirm that the error goes away. Thanks for your fix. |
Thanks |
We have noticed occasionally the following exception in our logs:
If this exeption occures, the client call gets stalled. If a socket timeout is not set, the client waits infinite for a response. This results in some of our services not starting up or failing during runtime.
Expected Behavior
The call should succeed and the spring cloud gateway should forward the request.
Actual Behavior
The request gets stalled. The gateway never returns. This does not happen on every request - but around 2-3% fail.
Steps to Reproduce
A multithreaded test http client was used to reproduce the behaviour. Should be reproducable with any http load testframework.
Possible Solution
Use version 1.1.23 of reactor-netty. The problem does not occure in this version. The error behaviour can be reproduced in 1.1.24 and 1.1.25. Only the reactory-netty-core library was replaced for the test. All other libraries in our app stayed the same. The reactor-netty version was enforced in the app main pom. The 1.2.x branch was not tested.
Your Environment
netty
, ...): Spring cloud version 2023.0.3 + Spring-boot 3.3.6.java -version
): 17.0.1+12-LTS-39uname -a
): Windows Server 2019The text was updated successfully, but these errors were encountered: