Skip to content

Commit 0266a8e

Browse files
mkuratczykmergify[bot]
authored andcommitted
Abort restart-cluster if something goes wrong
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)
1 parent 77867be commit 0266a8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

deps/rabbit_common/mk/rabbitmq-run.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ restart-cluster:
423423
-rabbitmq_prometheus tcp_config [{port,$$((15692 + $$n - 1))}] \
424424
-rabbitmq_stream tcp_listeners [$$((5552 + $$n - 1))] \
425425
"; \
426+
$(RABBITMQCTL) -n "$$nodename" await_online_nodes $(NODES) || exit 1; \
426427
done; \
427428
wait
428429

0 commit comments

Comments
 (0)