rabbitmq-server/deps/rabbitmq_peer_discovery_common
Michael Davis 2d4f19cf42
Peer Discovery AWS Integration Test / Integration Test (push) Has been cancelled Details
Skip peer discovery cleanup when backend returns error
Previously if the peer discovery backend returned an error from failing
to discover nodes, the `service_discovery_nodes/0` helper returned an
empty list. During cleanup this would mean that any nodes unreachable
during a partition would have destructive action taken against them:
`rabbit_db_cluster:forget_member/2` and `rabbit_quorum_queue:shrink_all/1`.
The `list_nodes/0` callback can fail transiently, though, and a failure
shouldn't mean that the cluster is empty. It's safer to avoid cleaning
up any nodes when the peer discovery backend fails to return the
intended set of nodes.
2025-09-29 21:45:15 -04:00
..
include
priv/schema
src Skip peer discovery cleanup when backend returns error 2025-09-29 21:45:15 -04:00
test Skip peer discovery cleanup when backend returns error 2025-09-29 21:45:15 -04:00
.gitignore
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
LICENSE-MPL-RabbitMQ
Makefile
README.md

README.md

RabbitMQ Peer Discovery Commons

This library is similar in purpose to rabbit-common but focusses exclusively on RabbitMQ peer discovery backends (available as a plugin for 3.6.x releases).

It is not supposed to be enabled, disabled or used directly by the users, only as a dependency of other plugins.

Project Maturity

This library shipped with RabbitMQ 3.7.0.

Contributing

See CONTRIBUTING.md and our development process overview.

License

Licensed under the MPL, same as RabbitMQ server.

(c) 2007-2024 Broadcom. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved.