-
Notifications
You must be signed in to change notification settings - Fork 65
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
Channel reconnect regression with 3.0.0 #39
Comments
Thank you for report @timcharper and for executable script! It is certainly result of upgrade to amqp-client 4.0.0 where automatic recovery is turned on by default. replacing factory initialization with following
will yield expected result of channel recoveries. At the moment i'm tempted to disable automatic recovery at the moment ConnectionActor Props created, publish |
Thank you for the reply, @fedgehog ! I should be able to work around this in op-rabbit. I'll do a milestone release with a big bold warning for those who are taking control over the connection factory aspect. |
There shouldn't be many of them in Scala-Akka lands, as autorecovery is feature that is there for long time in 3.X.X series of amqp-client. It was just disabled by default, now default is to enable. |
@timcharper i've published 3.0.1-SNAPSHOT with same changes applied as in aforementioned branch |
Native autorecovery brakes recovery capabitilies of akka-rabbitmq. This is a quickfix to prevent accidental issues. re #39
Published |
@fedgehog can you publish 3.0.1 to maven? |
Nevermind :) found 4.0.0 |
In previous versions of akka-rabbitmq, a connection close would result in automatic connection recovery. With
3.0.0
that behavior appears to be broken. The following scala script code can be evaluated by ammonite (open up ammonite, paste, etc.) to reproduce:Output:
At this point, the first channel shuts down. No attempt is made to reconnect. If this is the expected behavior, then perhaps it should be documented? In previous versions, the channel was recovered.
Also, if I kill RabbitMQ, then channel #2 shuts down. However, when I restart it, the channel is not recreated, although the connection actor obviously still works as I can still create further channels at this point.
The text was updated successfully, but these errors were encountered: