Skip to content

Commit ce1512a

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) (cherry picked from commit 0266a8e)
1 parent 33b0941 commit ce1512a

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
@@ -436,6 +436,7 @@ restart-cluster:
436436
-rabbitmq_prometheus tcp_config [{port,$$((15692 + $$n - 1))}] \
437437
-rabbitmq_stream tcp_listeners [$$((5552 + $$n - 1))] \
438438
"; \
439+
$(RABBITMQCTL) -n "$$nodename" await_online_nodes $(NODES) || exit 1; \
439440
done; \
440441
wait
441442

0 commit comments

Comments
 (0)