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

[C++ broker] Topic created as durable contains the durable=true in properties without having any effect on the subscription queues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.24
    • 0.24
    • C++ Broker
    • None
    • CentOS 6.4, Qpid 0.24 RC1, Proton 0.4

    Description

      A durable topic can be created with the qpidt utility by specifinfg the "durable=true" option, e.g.:

      qpidt create topic x durable=true exchange=response qpid.max_count=1000 qpid.max_size=1000000 qpid.policy_type=ring

      That creates a topic which is indeed durable, but also contains the durable flag in the properties:

      {{Object of type: org.apache.qpid.broker:topic:_data(6182b36f-9f09-4118-2881-fb69e5355628)
      Attribute 165
      ======================================================================================================================================================
      name x
      exchangeRef 145
      durable True
      properties

      {u'qpid.max_size': u'1000000', *u'durable': u'true'*, u'qpid.policy_type': u'ring', u'qpid.max_count': u'1000', u'exchange': u'response'}

      }}

      This might be confusing because the durable property is not propagated to the subscription queues created from this topic. To avoid the confusion, the durable option should not be added to the properties.

      Attachments

        Activity

          People

            gsim Gordon Sim
            scholzj Jakub Scholz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: