Commit 5615a2b
rabbit_quorum_queue: Remove old compatibility code in
The `sys:get_status/1` fallback doesn't work as expected since the
changes in Ra for OTP 27: <rabbitmq/ra@ab280c7>.
This code is meant for mixed-versions compatibility with nodes that
don't have the `rabbit_quorum_queue:key_metrics_rpc/1` function which
was added in v3.13.0.
Quorum queues with a member down could see a failure of the
quorum_status CLI command like so:
% rabbitmq rabbitmq-queues quorum_status --vhost / "qq-1"
Status of quorum queue qq-1 on node [email protected] ...
Error:
{{:badmatch, false}, [{:rabbit_quorum_queue, :"-status/2-lc$^0/1-0-", 2, [file: ~c"rabbit_quorum_queue.erl", line: 1287]}, {:rabbit_quorum_queue, :status, 2, []}]}
The badmatch comes from this line in `rabbit_quorum_queue:status/2`:
{_, M} = lists:keyfind(ra_server_state, 1, Sys),
The `Sys` return was `[{data, Sys}]` since the linked change in Ra, so
the `keyfind/3` would always return `false`.
(cherry picked from commit 38f83d7)status/2
1 parent 1d757e7 commit 5615a2b
1 file changed
+16
-48
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1295 | 1295 | | |
1296 | 1296 | | |
1297 | 1297 | | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
1304 | | - | |
1305 | | - | |
1306 | | - | |
1307 | | - | |
1308 | | - | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
1315 | | - | |
1316 | | - | |
1317 | | - | |
1318 | | - | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
1325 | | - | |
1326 | | - | |
1327 | | - | |
1328 | | - | |
1329 | | - | |
1330 | | - | |
1331 | | - | |
1332 | | - | |
1333 | | - | |
1334 | | - | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
1335 | 1314 | | |
1336 | 1315 | | |
1337 | 1316 | | |
| |||
1340 | 1319 | | |
1341 | 1320 | | |
1342 | 1321 | | |
1343 | | - | |
1344 | | - | |
1345 | | - | |
1346 | | - | |
1347 | | - | |
1348 | | - | |
1349 | | - | |
1350 | | - | |
1351 | | - | |
1352 | | - | |
1353 | | - | |
1354 | 1322 | | |
1355 | 1323 | | |
1356 | 1324 | | |
| |||
0 commit comments