Bug 975867

Summary: QMF reporting differs when creating federation with --credit 0 and leaving the default
Product: Red Hat Enterprise MRG Reporter: Zdenek Kraus <zkraus>
Component: qpid-qmfAssignee: messaging-bugs <messaging-bugs>
Status: NEW --- QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.4CC: jross, kgiusti
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: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zdenek Kraus 2013-06-19 13:39:12 UTC
Description of problem:

When you create a route without specifying the credit value (credit should be not applied (=unlimited)) the QMF reports the credit on the bridge object as 2^32 thus "unlimited".

But the other case, when you specify the --credit=0, result should be the same (=unlimited), the QMF in this case reports a zero credit.

Version-Release number of selected component (if applicable):
qpid-cpp-0.22-4

How reproducible:
100%

Steps to Reproduce:
1. create a federation route without specifying a credit value
2. create another federation route with the credit specified --credit 0
3. check with the qpid-tool the credit value set

Actual results:

# DEFAULT #
Object of type: org.apache.qpid.broker:bridge:_data(b71da3c2-cbac-950f-1954-2aeced85659e)
    Attribute   165
    ==============================================
    linkRef     178
    name        qpid.tcp:192.168.6.3:5672!dq!ex!
    channelId   2
    durable     False
    src         dq
    dest        ex
    key         
    srcIsQueue  True
    srcIsLocal  False
    tag         
    excludes    
    dynamic     False
    sync        1
    credit      4294967295

# CREDIT #
Object of type: org.apache.qpid.broker:bridge:_data(b71da3c2-cbac-950f-1954-2aeced85659e)
    Attribute   188
    ==============================================
    linkRef     201
    name        qpid.tcp:192.168.6.3:5672!dq!ex!
    channelId   3
    durable     False
    src         dq
    dest        ex
    key         
    srcIsQueue  True
    srcIsLocal  False
    tag         
    excludes    
    dynamic     False
    sync        1
    credit      0


Expected results:
the QMF reports the same value for both ways, preferably zero (same as --ack/sync option)

Additional info:
see also Bug 949014 Comment 8 and Bug 949014 Comment 9