Commit 3292c00
Handle crashed member in quorum queue status
`ra:key_metrics/1` can return a very small metrics map in case a
member is dead and it terminated so early that it hasn't recorded any
counters yet.
In this edge case the `quorum_status` command used to crash, although
returning status of other members is still useful.
```
$ rabbitmq-queues quorum_status <queue>
Status of quorum queue <queue> on node rabbit@<host> ...
Error:
{{:case_clause, %{state: :noproc, membership: :unknown, machine_version: 6}}, [{:rabbit_quorum_queue, :"-status/2-lc$^0/1-0-", 2, [file: ~c"src/rabbit_quorum_queue.erl", line: 1252]}, {:rabbit_quorum_queue, :"-status/2-lc$^0/1-0-", 2, [file: ~c"src/rabbit_quorum_queue.erl", line: 1311]}, {:rabbit_quorum_queue, :status, 2, []}]}
```
(cherry picked from commit 2a4b6bd)1 parent 980a6ce commit 3292c00
File tree
2 files changed
+49
-6
lines changed- deps/rabbit
- src
- test
2 files changed
+49
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1281 | 1281 | | |
1282 | 1282 | | |
1283 | 1283 | | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
1284 | 1298 | | |
1285 | 1299 | | |
1286 | 1300 | | |
| |||
1309 | 1323 | | |
1310 | 1324 | | |
1311 | 1325 | | |
1312 | | - | |
| 1326 | + | |
1313 | 1327 | | |
1314 | 1328 | | |
1315 | 1329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
4050 | 4051 | | |
4051 | 4052 | | |
4052 | 4053 | | |
4053 | | - | |
| 4054 | + | |
4054 | 4055 | | |
4055 | | - | |
| 4056 | + | |
4056 | 4057 | | |
4057 | 4058 | | |
4058 | 4059 | | |
| |||
4083 | 4084 | | |
4084 | 4085 | | |
4085 | 4086 | | |
4086 | | - | |
4087 | | - | |
4088 | | - | |
| 4087 | + | |
| 4088 | + | |
| 4089 | + | |
4089 | 4090 | | |
4090 | 4091 | | |
4091 | 4092 | | |
| |||
4094 | 4095 | | |
4095 | 4096 | | |
4096 | 4097 | | |
| 4098 | + | |
| 4099 | + | |
| 4100 | + | |
| 4101 | + | |
| 4102 | + | |
| 4103 | + | |
| 4104 | + | |
| 4105 | + | |
| 4106 | + | |
| 4107 | + | |
| 4108 | + | |
| 4109 | + | |
| 4110 | + | |
| 4111 | + | |
| 4112 | + | |
| 4113 | + | |
| 4114 | + | |
| 4115 | + | |
| 4116 | + | |
| 4117 | + | |
| 4118 | + | |
| 4119 | + | |
| 4120 | + | |
| 4121 | + | |
| 4122 | + | |
| 4123 | + | |
| 4124 | + | |
| 4125 | + | |
4097 | 4126 | | |
4098 | 4127 | | |
4099 | 4128 | | |
| |||
0 commit comments