Qpid
  1. Qpid
  2. QPID-3180

Ring queues do not work with --default-queue-limit 0

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.10, 0.14
    • Fix Version/s: 0.15
    • Component/s: C++ Broker
    • Labels:
      None

      Description

      A broker started with --default-queue-limit 0 will result in any ring queue failing to enqueue any messages with non-empty content as the policy incorrectly tries to enforce a size of 0 rather than an infinite size limit.

        Activity

        Hide
        Gordon Sim added a comment -

        Corrected name of broker option (was --default-queue-size, should be --default-queue-limit)

        Show
        Gordon Sim added a comment - Corrected name of broker option (was --default-queue-size, should be --default-queue-limit)
        Hide
        Gordon Sim added a comment -

        Fixed title as per previous fix to description.

        Show
        Gordon Sim added a comment - Fixed title as per previous fix to description.
        Hide
        Gordon Sim added a comment -

        A further problem with a zero size was discovered. E.g. if you send 10 messages to a ring queue with a max-count of 5 (when the max-size is 0), then only four messages are left on the queue.

        E.g.
        $> for i in `seq 10`; do echo msg-$i; done | ./src/tests/qpid-send -a 'my-queue; {create: always, node:{x-declare:{arguments:{qpid.max_count:5, qpid.policy_type:ring}}}}' --content-stdin
        $> ./src/tests/qpid-receive -a my-queue
        msg-7
        msg-8
        msg-9
        msg-10

        Show
        Gordon Sim added a comment - A further problem with a zero size was discovered. E.g. if you send 10 messages to a ring queue with a max-count of 5 (when the max-size is 0), then only four messages are left on the queue. E.g. $> for i in `seq 10`; do echo msg-$i; done | ./src/tests/qpid-send -a 'my-queue; {create: always, node:{x-declare:{arguments:{qpid.max_count:5, qpid.policy_type:ring}}}}' --content-stdin $> ./src/tests/qpid-receive -a my-queue msg-7 msg-8 msg-9 msg-10

          People

          • Assignee:
            Gordon Sim
            Reporter:
            Gordon Sim
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development