Qpid
  1. Qpid
  2. QPID-2846

QMF: python console crashes on race condition when deleting an agent.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7
    • Labels:
      None
    • Environment:

      all

      Description

      If an agent is deleted while reply messages from that agent are still pending on the queue, the python console can crash due to a stale sequence id:

      Exception in thread Thread for broker: grm31.lab:5672:
      Traceback (most recent call last):
      File "/usr/lib/python2.6/threading.py", line 522, in __bootstrap_inner
      self.run()
      File "/home/ernie/lib/python/qmf/console.py", line 2813, in run
      self._v2Dispatch(item.data)
      File "/home/ernie/lib/python/qmf/console.py", line 2695, in _v2Dispatch
      agent._handleQmfV2Message(opcode, mp, ah, content)
      File "/home/ernie/lib/python/qmf/console.py", line 3418, in
      _handleQmfV2Message
      elif opcode == '_exception': self._v2HandleException(mp, ah, content)
      File "/home/ernie/lib/python/qmf/console.py", line 3282, in
      _v2HandleException
      pair.cancel(text)
      File "/home/ernie/lib/python/qmf/console.py", line 3507, in cancel
      self._complete()
      File "/home/ernie/lib/python/qmf/console.py", line 3545, in _complete
      self.agent._clearContext(self.sequence)
      File "/home/ernie/lib/python/qmf/console.py", line 3061, in _clearContext
      x = self.contextMap.pop(sequence)
      KeyError: 'pop(): dictionary is empty'

        Activity

        Ken Giusti created issue -
        Ken Giusti made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Ken Giusti made changes -
        Fix Version/s 0.7 [ 12314455 ]

          People

          • Assignee:
            Ken Giusti
            Reporter:
            Ken Giusti
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development