We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4fcf757 + 6705809 commit 673bfceCopy full SHA for 673bfce
deps/rabbit/src/rabbit_quorum_queue.erl
@@ -976,8 +976,15 @@ maybe_delete_data_dir(UId) ->
976
977
policy_changed(Q) ->
978
QPid = amqqueue:get_pid(Q),
979
- _ = rabbit_fifo_client:update_machine_state(QPid, ra_machine_config(Q)),
980
- ok.
+ case rabbit_fifo_client:update_machine_state(QPid, ra_machine_config(Q)) of
+ ok ->
981
+ ok;
982
+ Err ->
983
+ FormattedQueueName = rabbit_misc:rs(amqqueue:get_name(Q)),
984
+ rabbit_log:warning("~s: policy may not have been successfully applied. Error: ~p",
985
+ [FormattedQueueName, Err]),
986
+ ok
987
+ end.
988
989
-spec cluster_state(Name :: atom()) -> 'down' | 'recovering' | 'running'.
990
0 commit comments