qpid-stat doesn't show all queues
Environment
- Red Hat Enterprise MRG Messaging (any version)
qpid-tools
(any version)
Issue
- running
qpid-stat
with option-S
to sort rows per some column - the output does not show all expected queues/exchanges/connections/subscriptions
- when using a different tool or
qpid-stat
without-S
, all objects are showed as expected
Resolution
Add option -L <N>
to limit the sorted output to N
lines. The default value of this parameter is 50.
Root Cause
When -S
parameter in qpid-stat
is used (to sort output per given column), the sort / the output is limited to the first 50 records only. This number is configurable via -L
parameter.
When -S
parameter is not used, all records (queues/exchanges/..) are printed every time.
Diagnostic Steps
While qpid-stat
without -S
option reports e.g. 69 queues (plus 3 lines in the output for headers), qpid-stat -S
reports just 50 queues. Increasing the sort limit by adding -L 100
again reports all queues:
$ qpid-stat -q | wc
72 647 9168
$ qpid-stat -q -S msg | wc
53 472 6249
$ qpid-stat -q -S msg -L 100 | wc
72 647 9168
$
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments