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

Creating a ring queue with c++ address strings does not work.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7
    • 0.7
    • C++ Client
    • None

    Description

      Using qpid-send I try to create a ring queue of size 3. I send 5 messages to it, expecting that 2 will be over-written due to the ring queue policy. However qpid-receive shows that all 5 messages were stored on the queue:

      [aconway@rolf qpid]$ qpid-send -a "rq ; { create: always, node: { type:queue, x-declare: { arguments: { 'qpid.max_size': 3, 'qpid.policy_type': ring }} }}" --content-stdin
      a
      b
      c
      d
      e
      [aconway@rolf qpid]$ qpid-receive -a "rq"
      a
      b
      c
      d
      e

      Using qpid-tool I get the following for the queue:
      arguments

      {u'qpid.max_size': '3', u'qpid.policy_type': 'ring'}

      Note single quotes around '3' - it appears to be treated as string rather than integer. On a ring queue created from a python client these quotes don't appear.

      Attachments

        Issue Links

          Activity

            People

              jonathan.robie Jonathan Robie
              aconway Alan Conway
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: