-
Notifications
You must be signed in to change notification settings - Fork 593
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
Automatic recovery fails if the channel is disposed #1647
Comments
@MatElcome thank you for the complete issue report!!! I will release a new RC with a fix shortly. |
* Fix object disposed exception during channel Recovery Fixes #1647 * * Remove channels that do not recover successfully * * Hold the `_channelsSemaphore` for a shorter period of time.
@MatElcome - please test out RC 7 when it is published, which should be within the next 30 minutes - https://github.com/rabbitmq/rabbitmq-dotnet-client/releases/tag/v7.0.0-rc.7 https://github.com/rabbitmq/rabbitmq-dotnet-client/actions/runs/10184587833 Thank you very much! |
@MatElcome FYI - hot off of the presses - https://www.nuget.org/packages/RabbitMQ.Client/7.0.0-rc.7 |
@lukebakken Perfect, RC 7 resolves the issue. Thanks for such a quick fix - its greatly appreciated! |
@MatElcome thank YOU for testing the RC versions! |
Describe the bug
If the connection to the RabbitMQ server is interrupted (eg. networking issue, server restart), the client library will try to recover and recreate any open channels (provided the
AutomaticRecoveryEnabled = true
option is used). However, the recovery will fail if a channel is disposed in user code before the recovery operation succeeds.This issue is present in version
7.0.0-rc.6
ofRabbitMQ.Client
- it doesn't seem to affect version6.8.1
Reproduction steps
RabbitMQ.Client
version7.0.0-rc.6
Expected behavior
Expected output:
Actual output:
Notice how in message 24 onwards, the error message is
FailedAutoRecovery
.Additional context
The following exception is thrown during autorecovery:
The text was updated successfully, but these errors were encountered: