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

receiver.unsettled() throws exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.16
    • Fix Version/s: 0.23
    • Component/s: Python Client
    • Labels:
      None
    • Environment:

      python-qpid-0.16-1.fc16.noarch
      qpid-tools-0.16-1.fc16.1.noarch
      qpid-cpp-server-0.16-1.fc16.1.i686

      Description

      [jwulf@radhe unsettled]$ python unsettled.py
      Traceback (most recent call last):
      File "unsettled.py", line 12, in <module>
      msgs=rx.unsettled()
      File "<string>", line 6, in unsettled
      File "/usr/lib/python2.7/site-packages/qpid/messaging/endpoints.py", line 986, in unsettled
      return len([m for m in self.acked if m._receiver is self])
      AttributeError: 'Receiver' object has no attribute 'acked'

      Reproducer:

      import sys
      from qpid.messaging import *

      connection=Connection("localhost:5672")
      connection.open()
      try:
      ssn=connection.session()
      rx=ssn.receiver("test;

      {create:always}

      ")
      tx=ssn.sender("test")
      tx.send("hello")
      rx.fetch()
      msgs=rx.unsettled()
      print msgs
      ssn.acknowledge()

      finally:
      connection.close()

        Attachments

        1. unsettled.py
          0.3 kB
          Joshua Wulf

          Activity

            People

            • Assignee:
              justi9 Justin Ross
              Reporter:
              sitapati Joshua Wulf
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: