Qpid
  1. Qpid
  2. QPID-5053

[C++ broker] Exclusive autodelete queues created with AMQP 1.0 don't seem to be autodeleted

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.24
    • Fix Version/s: 0.24
    • Component/s: C++ Broker
    • Labels:
      None
    • Environment:

      CentOS 6.4, Qpidd 0.24 RC1, Proton 0.4

      Description

      I'm using a qpid.messaging client with AMQP 1.0 to create a temporary / auto-delete queue on the broker. This queue should get deleted after the connection is closed. However, it seems that if the queue is exclusive, it is never autodeleted. To create the queue, I'm using following address:

      myresponse_queue_1;
      {
      create: always,
      assert: never,
      node:
      {
      durable: false,
      properties:

      { auto-delete: true, exclusive: true, 'qpid.max_count': 1000, 'qpid.max_size': 1000000, 'qpid.policy_type': ring }

      }
      }

      According to qpid-tool, the auto-delete option is properly recognized:

      Object of type: org.apache.qpid.broker:queue:_data(aee19387-3611-855a-c8ff-d2f106e5b5f4)
      Attribute 160
      ===========================================================================================================
      vhostRef 170
      name response.ABCFR_ABCFRALMMACC1.response_queue_1
      durable False
      autoDelete True
      exclusive True
      arguments

      {u'qpid.max_size': '1000000', u'qpid.max_count': '999', u'qpid.policy_type': 'ring'}

      msgTotalEnqueues 0
      msgTotalDequeues 0
      msgTxnEnqueues 0
      msgTxnDequeues 0
      msgPersistEnqueues 0
      msgPersistDequeues 0
      msgDepth 0
      byteDepth 0
      byteTotalEnqueues 0
      byteTotalDequeues 0
      byteTxnEnqueues 0
      byteTxnDequeues 0
      bytePersistEnqueues 0
      bytePersistDequeues 0
      msgFtdEnqueues 0
      msgFtdDequeues 0
      byteFtdEnqueues 0
      byteFtdDequeues 0
      msgFtdDepth 0
      byteFtdDepth 0
      releases 0
      acquires 0
      discardsTtl 0
      discardsRing 0
      discardsLvq 0
      discardsOverflow 0
      discardsSubscriber 0
      discardsPurge 0
      reroutes 0
      consumerCount 1
      consumerCountHigh 1
      consumerCountLow 1
      bindingCount 1
      bindingCountHigh 1
      bindingCountLow 1
      unackedMessages 0
      unackedMessagesHigh 0
      unackedMessagesLow 0
      messageLatencyMin 0s
      messageLatencyMax 0s
      flowStopped False
      flowStoppedCount 0
      redirectPeer
      redirectSource False

      But the queue is never deleted. With qpid.messaging and AMQP 0.10, or with qpid.messaging, AMQP 1.0 and non-exclusive queue, the auto deletion seems to work fine.

      Please let me know if you need some additional logs or information.

        Activity

        Jakub Scholz created issue -
        Gordon Sim made changes -
        Field Original Value New Value
        Assignee Gordon Sim [ gsim ]
        Hide
        ASF subversion and git services added a comment -

        Commit 1512283 from Gordon Sim in branch 'qpid/trunk'
        [ https://svn.apache.org/r1512283 ]

        QPID-5053: release exclusive queue ownership when session ends (clear the set after iterating over it!)

        Show
        ASF subversion and git services added a comment - Commit 1512283 from Gordon Sim in branch 'qpid/trunk' [ https://svn.apache.org/r1512283 ] QPID-5053 : release exclusive queue ownership when session ends (clear the set after iterating over it!)
        Hide
        Chuck Rolke added a comment -

        approved for 0.24

        Show
        Chuck Rolke added a comment - approved for 0.24
        Hide
        Justin Ross added a comment -

        Reviewed by Chuck. Approved for 0.24.

        Show
        Justin Ross added a comment - Reviewed by Chuck. Approved for 0.24.
        Hide
        ASF subversion and git services added a comment -

        Commit 1512396 from Gordon Sim in branch 'qpid/branches/0.24'
        [ https://svn.apache.org/r1512396 ]

        QPID-5053: release exclusive queue ownership when session ends (merged from r1512283)

        Show
        ASF subversion and git services added a comment - Commit 1512396 from Gordon Sim in branch 'qpid/branches/0.24' [ https://svn.apache.org/r1512396 ] QPID-5053 : release exclusive queue ownership when session ends (merged from r1512283)
        Gordon Sim made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 0.24 [ 12324776 ]
        Resolution Fixed [ 1 ]
        Hide
        Justin Ross added a comment -
        Show
        Justin Ross added a comment - Released in Qpid 0.24, http://qpid.apache.org/releases/qpid-0.24/index.html
        Justin Ross made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1d 7h 33m 1 Gordon Sim 09/Aug/13 18:16
        Resolved Resolved Closed Closed
        29d 20h 21m 1 Justin Ross 08/Sep/13 14:37

          People

          • Assignee:
            Gordon Sim
            Reporter:
            Jakub Scholz
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development