You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Brandon Pedersen (Created) (JIRA)" <ji...@apache.org> on 2011/10/08 21:19:29 UTC

[jira] [Created] (QPID-3533) qpid-config does not properly set some options if value evaluates to False

qpid-config does not properly set some options if value evaluates to False
--------------------------------------------------------------------------

                 Key: QPID-3533
                 URL: https://issues.apache.org/jira/browse/QPID-3533
             Project: Qpid
          Issue Type: Bug
          Components: python tools, Tools
    Affects Versions: 0.12
         Environment: Linux C++ broker with python 2.6
            Reporter: Brandon Pedersen
            Priority: Minor


PROBLEM STATEMENT:
Some options with the qpid-config tool ignore options which evaluate to False, most  notably a value of 0. In my case I was trying to set the flow-stop-count to 0 as described here: http://qpid.apache.org/books/0.12/AMQP-Messaging-Broker-CPP-Book/html/ch01s09.html to disable the flow control.

STEPS TO REPRODUCE:
- Add a queue using the following options:
qpid-config add queue myqueue --max-queue-count=5 --limit-policy=flow-to-disk --flow-stop-count=0
- Generate at least 5 messages that will go on myqueue

RESULTS:
Generating the 5th message will hang, waiting for the queue count to go less than 4

EXPECTED RESULTS:
Messages should continue to flow onto the queue (and be flushed to the disk)

COMMENTS:
The reason this happens is because the flow stop count is never set by qpid-config. There are several options that share the same issue in qpid-config. I created a patch that fixes this issue for me and will attach it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] [Commented] (QPID-3533) qpid-config does not properly set some options if value evaluates to False

Posted by "Nuno Santos (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-3533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159564#comment-13159564 ] 

Nuno Santos commented on QPID-3533:
-----------------------------------

Thank you for the patch. I tested it and applied it at svn rev 1208094.
                
> qpid-config does not properly set some options if value evaluates to False
> --------------------------------------------------------------------------
>
>                 Key: QPID-3533
>                 URL: https://issues.apache.org/jira/browse/QPID-3533
>             Project: Qpid
>          Issue Type: Bug
>          Components: python tools, Tools
>    Affects Versions: 0.12
>         Environment: Linux C++ broker with python 2.6
>            Reporter: Brandon Pedersen
>            Assignee: Nuno Santos
>            Priority: Minor
>              Labels: patch
>             Fix For: 0.14
>
>         Attachments: fix_missing_opts.patch
>
>
> PROBLEM STATEMENT:
> Some options with the qpid-config tool ignore options which evaluate to False, most  notably a value of 0. In my case I was trying to set the flow-stop-count to 0 as described here: http://qpid.apache.org/books/0.12/AMQP-Messaging-Broker-CPP-Book/html/ch01s09.html to disable the flow control.
> STEPS TO REPRODUCE:
> - Add a queue using the following options:
> qpid-config add queue myqueue --max-queue-count=5 --limit-policy=flow-to-disk --flow-stop-count=0
> - Generate at least 5 messages that will go on myqueue
> RESULTS:
> Generating the 5th message will hang, waiting for the queue count to go less than 4
> EXPECTED RESULTS:
> Messages should continue to flow onto the queue (and be flushed to the disk)
> COMMENTS:
> The reason this happens is because the flow stop count is never set by qpid-config. There are several options that share the same issue in qpid-config. I created a patch that fixes this issue for me and will attach it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] [Resolved] (QPID-3533) qpid-config does not properly set some options if value evaluates to False

Posted by "Nuno Santos (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nuno Santos resolved QPID-3533.
-------------------------------

    Resolution: Fixed

Patch committed at svn rev 1208094
                
> qpid-config does not properly set some options if value evaluates to False
> --------------------------------------------------------------------------
>
>                 Key: QPID-3533
>                 URL: https://issues.apache.org/jira/browse/QPID-3533
>             Project: Qpid
>          Issue Type: Bug
>          Components: python tools, Tools
>    Affects Versions: 0.12
>         Environment: Linux C++ broker with python 2.6
>            Reporter: Brandon Pedersen
>            Assignee: Nuno Santos
>            Priority: Minor
>              Labels: patch
>             Fix For: 0.14
>
>         Attachments: fix_missing_opts.patch
>
>
> PROBLEM STATEMENT:
> Some options with the qpid-config tool ignore options which evaluate to False, most  notably a value of 0. In my case I was trying to set the flow-stop-count to 0 as described here: http://qpid.apache.org/books/0.12/AMQP-Messaging-Broker-CPP-Book/html/ch01s09.html to disable the flow control.
> STEPS TO REPRODUCE:
> - Add a queue using the following options:
> qpid-config add queue myqueue --max-queue-count=5 --limit-policy=flow-to-disk --flow-stop-count=0
> - Generate at least 5 messages that will go on myqueue
> RESULTS:
> Generating the 5th message will hang, waiting for the queue count to go less than 4
> EXPECTED RESULTS:
> Messages should continue to flow onto the queue (and be flushed to the disk)
> COMMENTS:
> The reason this happens is because the flow stop count is never set by qpid-config. There are several options that share the same issue in qpid-config. I created a patch that fixes this issue for me and will attach it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] [Updated] (QPID-3533) qpid-config does not properly set some options if value evaluates to False

Posted by "Robbie Gemmell (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robbie Gemmell updated QPID-3533:
---------------------------------

    Component/s:     (was: Tools)
    
> qpid-config does not properly set some options if value evaluates to False
> --------------------------------------------------------------------------
>
>                 Key: QPID-3533
>                 URL: https://issues.apache.org/jira/browse/QPID-3533
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Tools
>    Affects Versions: 0.12, 0.14
>         Environment: Linux C++ broker with python 2.6
>            Reporter: Brandon Pedersen
>            Assignee: Nuno Santos
>            Priority: Minor
>              Labels: patch
>             Fix For: 0.15
>
>         Attachments: fix_missing_opts.patch
>
>
> PROBLEM STATEMENT:
> Some options with the qpid-config tool ignore options which evaluate to False, most  notably a value of 0. In my case I was trying to set the flow-stop-count to 0 as described here: http://qpid.apache.org/books/0.12/AMQP-Messaging-Broker-CPP-Book/html/ch01s09.html to disable the flow control.
> STEPS TO REPRODUCE:
> - Add a queue using the following options:
> qpid-config add queue myqueue --max-queue-count=5 --limit-policy=flow-to-disk --flow-stop-count=0
> - Generate at least 5 messages that will go on myqueue
> RESULTS:
> Generating the 5th message will hang, waiting for the queue count to go less than 4
> EXPECTED RESULTS:
> Messages should continue to flow onto the queue (and be flushed to the disk)
> COMMENTS:
> The reason this happens is because the flow stop count is never set by qpid-config. There are several options that share the same issue in qpid-config. I created a patch that fixes this issue for me and will attach it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] [Assigned] (QPID-3533) qpid-config does not properly set some options if value evaluates to False

Posted by "Ted Ross (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Ross reassigned QPID-3533:
------------------------------

    Assignee: Nuno Santos
    
> qpid-config does not properly set some options if value evaluates to False
> --------------------------------------------------------------------------
>
>                 Key: QPID-3533
>                 URL: https://issues.apache.org/jira/browse/QPID-3533
>             Project: Qpid
>          Issue Type: Bug
>          Components: python tools, Tools
>    Affects Versions: 0.12
>         Environment: Linux C++ broker with python 2.6
>            Reporter: Brandon Pedersen
>            Assignee: Nuno Santos
>            Priority: Minor
>              Labels: patch
>         Attachments: fix_missing_opts.patch
>
>
> PROBLEM STATEMENT:
> Some options with the qpid-config tool ignore options which evaluate to False, most  notably a value of 0. In my case I was trying to set the flow-stop-count to 0 as described here: http://qpid.apache.org/books/0.12/AMQP-Messaging-Broker-CPP-Book/html/ch01s09.html to disable the flow control.
> STEPS TO REPRODUCE:
> - Add a queue using the following options:
> qpid-config add queue myqueue --max-queue-count=5 --limit-policy=flow-to-disk --flow-stop-count=0
> - Generate at least 5 messages that will go on myqueue
> RESULTS:
> Generating the 5th message will hang, waiting for the queue count to go less than 4
> EXPECTED RESULTS:
> Messages should continue to flow onto the queue (and be flushed to the disk)
> COMMENTS:
> The reason this happens is because the flow stop count is never set by qpid-config. There are several options that share the same issue in qpid-config. I created a patch that fixes this issue for me and will attach it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] [Updated] (QPID-3533) qpid-config does not properly set some options if value evaluates to False

Posted by "Justin Ross (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Ross updated QPID-3533:
------------------------------

    Affects Version/s: 0.14
        Fix Version/s:     (was: 0.14)
                       0.15
    
> qpid-config does not properly set some options if value evaluates to False
> --------------------------------------------------------------------------
>
>                 Key: QPID-3533
>                 URL: https://issues.apache.org/jira/browse/QPID-3533
>             Project: Qpid
>          Issue Type: Bug
>          Components: python tools, Tools
>    Affects Versions: 0.12, 0.14
>         Environment: Linux C++ broker with python 2.6
>            Reporter: Brandon Pedersen
>            Assignee: Nuno Santos
>            Priority: Minor
>              Labels: patch
>             Fix For: 0.15
>
>         Attachments: fix_missing_opts.patch
>
>
> PROBLEM STATEMENT:
> Some options with the qpid-config tool ignore options which evaluate to False, most  notably a value of 0. In my case I was trying to set the flow-stop-count to 0 as described here: http://qpid.apache.org/books/0.12/AMQP-Messaging-Broker-CPP-Book/html/ch01s09.html to disable the flow control.
> STEPS TO REPRODUCE:
> - Add a queue using the following options:
> qpid-config add queue myqueue --max-queue-count=5 --limit-policy=flow-to-disk --flow-stop-count=0
> - Generate at least 5 messages that will go on myqueue
> RESULTS:
> Generating the 5th message will hang, waiting for the queue count to go less than 4
> EXPECTED RESULTS:
> Messages should continue to flow onto the queue (and be flushed to the disk)
> COMMENTS:
> The reason this happens is because the flow stop count is never set by qpid-config. There are several options that share the same issue in qpid-config. I created a patch that fixes this issue for me and will attach it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] [Updated] (QPID-3533) qpid-config does not properly set some options if value evaluates to False

Posted by "Brandon Pedersen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brandon Pedersen updated QPID-3533:
-----------------------------------

    Attachment: fix_missing_opts.patch

Patch to qpid-config to correctly detect whether an option is present or not
                
> qpid-config does not properly set some options if value evaluates to False
> --------------------------------------------------------------------------
>
>                 Key: QPID-3533
>                 URL: https://issues.apache.org/jira/browse/QPID-3533
>             Project: Qpid
>          Issue Type: Bug
>          Components: python tools, Tools
>    Affects Versions: 0.12
>         Environment: Linux C++ broker with python 2.6
>            Reporter: Brandon Pedersen
>            Priority: Minor
>              Labels: patch
>         Attachments: fix_missing_opts.patch
>
>
> PROBLEM STATEMENT:
> Some options with the qpid-config tool ignore options which evaluate to False, most  notably a value of 0. In my case I was trying to set the flow-stop-count to 0 as described here: http://qpid.apache.org/books/0.12/AMQP-Messaging-Broker-CPP-Book/html/ch01s09.html to disable the flow control.
> STEPS TO REPRODUCE:
> - Add a queue using the following options:
> qpid-config add queue myqueue --max-queue-count=5 --limit-policy=flow-to-disk --flow-stop-count=0
> - Generate at least 5 messages that will go on myqueue
> RESULTS:
> Generating the 5th message will hang, waiting for the queue count to go less than 4
> EXPECTED RESULTS:
> Messages should continue to flow onto the queue (and be flushed to the disk)
> COMMENTS:
> The reason this happens is because the flow stop count is never set by qpid-config. There are several options that share the same issue in qpid-config. I created a patch that fixes this issue for me and will attach it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] [Updated] (QPID-3533) qpid-config does not properly set some options if value evaluates to False

Posted by "Brandon Pedersen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brandon Pedersen updated QPID-3533:
-----------------------------------

    Fix Version/s: 0.14
    
> qpid-config does not properly set some options if value evaluates to False
> --------------------------------------------------------------------------
>
>                 Key: QPID-3533
>                 URL: https://issues.apache.org/jira/browse/QPID-3533
>             Project: Qpid
>          Issue Type: Bug
>          Components: python tools, Tools
>    Affects Versions: 0.12
>         Environment: Linux C++ broker with python 2.6
>            Reporter: Brandon Pedersen
>            Assignee: Nuno Santos
>            Priority: Minor
>              Labels: patch
>             Fix For: 0.14
>
>         Attachments: fix_missing_opts.patch
>
>
> PROBLEM STATEMENT:
> Some options with the qpid-config tool ignore options which evaluate to False, most  notably a value of 0. In my case I was trying to set the flow-stop-count to 0 as described here: http://qpid.apache.org/books/0.12/AMQP-Messaging-Broker-CPP-Book/html/ch01s09.html to disable the flow control.
> STEPS TO REPRODUCE:
> - Add a queue using the following options:
> qpid-config add queue myqueue --max-queue-count=5 --limit-policy=flow-to-disk --flow-stop-count=0
> - Generate at least 5 messages that will go on myqueue
> RESULTS:
> Generating the 5th message will hang, waiting for the queue count to go less than 4
> EXPECTED RESULTS:
> Messages should continue to flow onto the queue (and be flushed to the disk)
> COMMENTS:
> The reason this happens is because the flow stop count is never set by qpid-config. There are several options that share the same issue in qpid-config. I created a patch that fixes this issue for me and will attach it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org