Bug 786778

Summary: qpid-tool lists multiple queues with identical name but different id
Product: Red Hat Enterprise MRG Reporter: ppecka <ppecka>
Component: qpid-toolsAssignee: messaging-bugs <messaging-bugs>
Status: NEW --- QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 2.1CC: iboverma, jross
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description ppecka 2012-02-02 11:25:51 UTC
Description of problem:
For situation when qpid-tool is not terminated on "service qpidd restart" it shows message [A]. After "service qpidd restart", issuing command "list queue" under qpid-tool lists queues from old qpidd instance and from new instance. Running "qpid-config queues" gives accurate results (Additional info). 


[A] qpid: Broker disconnected: Disconnected Broker
Broker connected: Broker connected at: localhost:5672




Version-Release number of selected component (if applicable):

rpm -qa qpid-*
qpid-java-common-0.14-1.el6.noarch
qpid-java-example-0.14-1.el6.noarch
qpid-cpp-server-0.14-1.el6.x86_64
qpid-cpp-server-xml-0.14-1.el6.x86_64
qpid-java-client-0.14-1.el6.noarch
qpid-cpp-client-0.14-1.el6.x86_64
qpid-cpp-client-devel-0.14-1.el6.x86_64
qpid-cpp-client-ssl-0.14-1.el6.x86_64
qpid-cpp-server-devel-0.14-1.el6.x86_64
qpid-cpp-server-store-0.14-1.el6.x86_64
qpid-tools-0.14-1.el6.noarch
qpid-cpp-debuginfo-0.14-1.el6.x86_64
qpid-qmf-0.14-3.el6.x86_64
qpid-cpp-server-ssl-0.14-1.el6.x86_64
qpid-cpp-client-devel-docs-0.14-1.el6.noarch



How reproducible:
100%


Steps to Reproduce:
1. service qpidd restart; qpid-config add queue QUE
2. run qpid-tool in different shell
  2.1 list queue
3. service qpidd restart; qpid-config add queue QUE
4. in qpid-tool from [Step 2.] 
  4.1 list queue

  
Actual results:
[Step 2.1]
qpid: list queue
Object Summary:
    ID   Created   Destroyed  Index
    ===========================================================================
    149  10:38:16  -          162.QUE
    150  10:38:27  -          162.qmfc-v2-hb-mrg45.lab.bos.redhat.com.29604.1
    151  10:38:27  -          162.qmfc-v2-mrg45.lab.bos.redhat.com.29604.1
    152  10:38:27  -          162.qmfc-v2-ui-mrg45.lab.bos.redhat.com.29604.1
    153  10:38:27  -          162.reply-mrg45.lab.bos.redhat.com.29604.1
    154  10:38:27  -          162.topic-mrg45.lab.bos.redhat.com.29604.1
    114  10:38:14  10:38:25   162.topic-mrg45.lab.bos.redhat.com.29252.1
    115  10:38:14  10:38:25   162.reply-mrg45.lab.bos.redhat.com.29252.1
    116  10:38:14  10:38:25   162.qmfc-v2-ui-mrg45.lab.bos.redhat.com.29252.1
    117  10:38:14  10:38:25   162.qmfc-v2-mrg45.lab.bos.redhat.com.29252.1
    118  10:38:14  10:38:25   162.qmfc-v2-hb-mrg45.lab.bos.redhat.com.29252.1


[Step 4.1 ]
qpid: list queue
Object Summary:
    ID   Created   Destroyed  Index
    ===========================================================================
    114  10:38:14  10:38:25   162.topic-mrg45.lab.bos.redhat.com.29252.1
    115  10:38:14  10:38:25   162.reply-mrg45.lab.bos.redhat.com.29252.1
    116  10:38:14  10:38:25   162.qmfc-v2-ui-mrg45.lab.bos.redhat.com.29252.1
    117  10:38:14  10:38:25   162.qmfc-v2-mrg45.lab.bos.redhat.com.29252.1
    118  10:38:14  10:38:25   162.qmfc-v2-hb-mrg45.lab.bos.redhat.com.29252.1
    149  10:38:16  -          162.QUE
    150  10:38:27  -          162.qmfc-v2-hb-mrg45.lab.bos.redhat.com.29604.1
    151  10:38:27  -          162.qmfc-v2-mrg45.lab.bos.redhat.com.29604.1
    152  10:38:27  -          162.qmfc-v2-ui-mrg45.lab.bos.redhat.com.29604.1
    153  10:38:27  -          162.reply-mrg45.lab.bos.redhat.com.29604.1
    154  10:38:27  -          162.topic-mrg45.lab.bos.redhat.com.29604.1
    175  11:16:43  11:16:46   162.topic-mrg45.lab.bos.redhat.com.29885.1
    176  11:16:43  11:16:46   162.reply-mrg45.lab.bos.redhat.com.29885.1
    177  11:16:43  11:16:46   162.qmfc-v2-ui-mrg45.lab.bos.redhat.com.29885.1
    178  11:16:43  11:16:46   162.qmfc-v2-mrg45.lab.bos.redhat.com.29885.1
    179  11:16:43  11:16:46   162.qmfc-v2-hb-mrg45.lab.bos.redhat.com.29885.1
    204  11:16:45  -          162.QUE
    205  11:16:44  -          162.qmfc-v2-hb-mrg45.lab.bos.redhat.com.29604.1
    206  11:16:44  -          162.qmfc-v2-mrg45.lab.bos.redhat.com.29604.1
    207  11:16:44  -          162.qmfc-v2-ui-mrg45.lab.bos.redhat.com.29604.1
    208  11:16:44  -          162.reply-mrg45.lab.bos.redhat.com.29604.1
    209  11:16:44  -          162.topic-mrg45.lab.bos.redhat.com.29604.1








Expected results:
qpid: list queue
Object Summary:
    ID   Created   Destroyed  Index
    ===========================================================================
    149  10:38:16  -          162.QUE
    150  10:38:27  -          162.qmfc-v2-hb-mrg45.lab.bos.redhat.com.29604.1
    151  10:38:27  -          162.qmfc-v2-mrg45.lab.bos.redhat.com.29604.1
    152  10:38:27  -          162.qmfc-v2-ui-mrg45.lab.bos.redhat.com.29604.1
    153  10:38:27  -          162.reply-mrg45.lab.bos.redhat.com.29604.1
    154  10:38:27  -          162.topic-mrg45.lab.bos.redhat.com.29604.1
    114  10:38:14  10:38:25   162.topic-mrg45.lab.bos.redhat.com.29252.1
    115  10:38:14  10:38:25   162.reply-mrg45.lab.bos.redhat.com.29252.1
    116  10:38:14  10:38:25   162.qmfc-v2-ui-mrg45.lab.bos.redhat.com.29252.1
    117  10:38:14  10:38:25   162.qmfc-v2-mrg45.lab.bos.redhat.com.29252.1
    118  10:38:14  10:38:25   162.qmfc-v2-hb-mrg45.lab.bos.redhat.com.29252.1



Additional info:
# qpid-config queues
Queue Name                                   Attributes
=================================================================
QUE                                          
qmfc-v2-hb-mrg45.lab.bos.redhat.com.29604.1  auto-del excl --limit-policy=ring 
qmfc-v2-hb-mrg45.lab.bos.redhat.com.29917.1  auto-del excl --limit-policy=ring 
qmfc-v2-mrg45.lab.bos.redhat.com.29604.1     auto-del excl 
qmfc-v2-mrg45.lab.bos.redhat.com.29917.1     auto-del excl 
qmfc-v2-ui-mrg45.lab.bos.redhat.com.29604.1  auto-del excl --limit-policy=ring 
qmfc-v2-ui-mrg45.lab.bos.redhat.com.29917.1  auto-del excl --limit-policy=ring 
reply-mrg45.lab.bos.redhat.com.29604.1       auto-del excl 
reply-mrg45.lab.bos.redhat.com.29917.1       auto-del excl 
topic-mrg45.lab.bos.redhat.com.29604.1       auto-del excl --limit-policy=ring 
topic-mrg45.lab.bos.redhat.com.29917.1       auto-del excl --limit-policy=ring