Skip to content

Commit

Permalink
Abort restart-cluster if something goes wrong
Browse files Browse the repository at this point in the history
For example, if the first restarted node doesn't start,
don't try to restart the other nodes. This mimics what
orchestrators such as Kubernetes or BOSH would do
(although they perform this check differently)

(cherry picked from commit 2c0fc70)
(cherry picked from commit 0266a8e)
  • Loading branch information
mkuratczyk authored and mergify[bot] committed Oct 30, 2024
1 parent 33b0941 commit ce1512a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deps/rabbit_common/mk/rabbitmq-run.mk
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ restart-cluster:
-rabbitmq_prometheus tcp_config [{port,$$((15692 + $$n - 1))}] \
-rabbitmq_stream tcp_listeners [$$((5552 + $$n - 1))] \
"; \
$(RABBITMQCTL) -n "$$nodename" await_online_nodes $(NODES) || exit 1; \
done; \
wait

Expand Down

0 comments on commit ce1512a

Please sign in to comment.