Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-3533

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.12, 0.14
    • 0.15
    • C++ Tools
    • Linux C++ broker with python 2.6

    Description

      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.

      Attachments

        1. fix_missing_opts.patch
          3 kB
          Brandon Pedersen

        Activity

          People

            nsantos Nuno Santos
            bpedman Brandon Pedersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: