rabbitmq-server/deps/rabbitmq_federation_management
Michal Kuratczyk 6513d028e3
Avoid crash when reporting federation status
This should address crashes like this in (found in user's logs):
```
exception error: no case clause matching
                  [[{connection_details,[]},
                    {name,<<"10.0.13.41:50497 -> 10.2.230.128:5671 (1)">>},
                    {node,rabbit@foobar},
                    {number,1},
                    {user,<<"...">>},
                    {user_who_performed_action,<<"...">>},
                    {vhost,<<"/">>}],
                   [{connection_details,[]},
                    {name,<<"10.0.13.41:50142 -> 10.2.230.128:5671 (1)">>},
                    {node,rabbit@foobar},
                    {number,1},
                    {user,<<"...">>},
                    {user_who_performed_action,<<"...">>},
                    {vhost,<<"/">>}]]
   in function  rabbit_federation_mgmt:format/3 (rabbit_federation_mgmt.erl, line 100)
   in call from rabbit_federation_mgmt:'-status/3-lc$^0/1-0-'/4 (rabbit_federation_mgmt.erl, line 89)
   in call from rabbit_federation_mgmt:'-status/4-lc$^0/1-0-'/3 (rabbit_federation_mgmt.erl, line 82)
   in call from rabbit_federation_mgmt:'-status/4-lc$^0/1-0-'/3 (rabbit_federation_mgmt.erl, line 82)
   in call from rabbit_federation_mgmt:status/4 (rabbit_federation_mgmt.erl, line 82)
   in call from rabbit_federation_mgmt:to_json/2 (rabbit_federation_mgmt.erl, line 57)
   in call from cowboy_rest:call/3 (src/cowboy_rest.erl, line 1590)
   in call from cowboy_rest:set_resp_body/2 (src/cowboy_rest.erl, line 1473)
```
2025-04-08 12:05:10 +02:00
..
priv/www/js Add queue type setting for exchange federation 2024-03-04 17:31:17 +01:00
src Avoid crash when reporting federation status 2025-04-08 12:05:10 +02:00
test Bump (c) line year 2025-01-01 17:54:10 -05:00
CODE_OF_CONDUCT.md Replace files with symlinks 2022-04-15 06:04:29 -07:00
CONTRIBUTING.md Replace files with symlinks 2022-04-15 06:04:29 -07:00
LICENSE Replace @rabbitmq.com addresses with rabbitmq-core@groups.vmware.com 2023-06-20 15:40:13 +04:00
LICENSE-APACHE2-ExplorerCanvas Add license files 2016-02-16 07:03:53 +03:00
LICENSE-BSD-base64js URL Cleanup 2019-03-20 03:15:33 -05:00
LICENSE-MIT-EJS10 Add license files 2016-02-16 07:03:53 +03:00
LICENSE-MIT-Flot Add license files 2016-02-16 07:03:53 +03:00
LICENSE-MIT-Sammy060 Add license files 2016-02-16 07:03:53 +03:00
LICENSE-MIT-jQuery164 URL Cleanup 2019-03-20 03:15:33 -05:00
LICENSE-MPL-RabbitMQ Switch to Mozilla Public License 2.0 (MPL 2.0) 2020-07-12 23:03:00 +01:00
Makefile Add a workflow to compare the bazel/erlang.mk output 2023-05-15 13:54:14 +02:00
README.md More missed license header updates #9969 2024-02-05 12:26:25 -05:00

README.md

RabbitMQ Federation Management Plugin

This plugin adds information on federation link status to the management plugin.

Installation

In recent releases, this plugin ships with RabbitMQ. Enable it with

rabbitmq-plugins enable rabbitmq_management rabbitmq_federation_management

If you have a heterogenous cluster (where the nodes have different plugins installed), this should be installed on the same nodes as the management plugin.

Use over HTTP API

The HTTP API endpoints allow for retrieval of federation links:

# lists all links
GET /api/federation-links
# lists links in a vhost
GET /api/federation-links/{vhost}

Building From Source

To build the plugin, use

make dist

and see under the ./plugins directory.

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

See LICENSE for license information.