You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the cluster LWRP envounters an error when joining a cluster it will leave the Rabbit stopped. This behavior is due to the stop/join/start method in the join action:
This is an issue if the join fails for something benign, like trying to cluster to a node that isn't up yet. As Rabbit is down subsequent runs will fail, even if whatever caused the error was transient. I believe better and more expected behavior would be to throw an exception in join_cluster() so that action :join can ensure start_app is always called, then calling Chef::Application.fatal! in an exception handler.
The text was updated successfully, but these errors were encountered:
CVTJNII
added a commit
to CVTJNII/rabbitmq
that referenced
this issue
Feb 19, 2016
If the cluster LWRP envounters an error when joining a cluster it will leave the Rabbit stopped. This behavior is due to the stop/join/start method in the join action:
https://github.com/jjasghar/rabbitmq/blob/master/providers/cluster.rb#L205-L207
And that the join_cluster method calls Chef::Application.fatal! on error:
https://github.com/jjasghar/rabbitmq/blob/master/providers/cluster.rb#L178
This is an issue if the join fails for something benign, like trying to cluster to a node that isn't up yet. As Rabbit is down subsequent runs will fail, even if whatever caused the error was transient. I believe better and more expected behavior would be to throw an exception in join_cluster() so that action :join can ensure start_app is always called, then calling Chef::Application.fatal! in an exception handler.
The text was updated successfully, but these errors were encountered: