Description of problem: Sometimes not handled exception is raised when service qpidd is stopping whilst service cumin is running. Version-Release number of selected component (if applicable): cumin-0.1.4369-1 How reproducible: 10% Steps to Reproduce: 1. start service qpidd # service qpidd start Starting Qpid AMQP daemon: [ OK ] 2. run 'service cumin start; sleep 1; service qpidd restart' # service cumin start; sleep 1; service qpidd restart Starting cumin: [ OK ] Stopping Qpid AMQP daemon: EXCEPTION in Broker._v1Cb: (None, 'connection aborted') Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/qmf/console.py", line 2518, in _v1Dispatch self._v1DispatchProtected(msg) File "/usr/lib/python2.4/site-packages/qmf/console.py", line 2568, in _v1DispatchProtected elif opcode == 'q': self.session._handleClassInd (self, codec, seq) File "/usr/lib/python2.4/site-packages/qmf/console.py", line 1113, in _handleClassInd broker._send(smsg) File "/usr/lib/python2.4/site-packages/qmf/console.py", line 2428, in _send self.amqpSession.message_transfer(destination=dest, message=msg) File "/usr/lib/python2.4/site-packages/qpid/generator.py", line 25, in <lambda> method = lambda self, *args, **kwargs: self.invoke(op, args, kwargs) File "/usr/lib/python2.4/site-packages/qpid/session.py", line 138, in invoke return self.do_invoke(op, args, kwargs) File "/usr/lib/python2.4/site-packages/qpid/session.py", line 183, in do_invoke self.sync(self.timeout) File "/usr/lib/python2.4/site-packages/qpid/session.py", line 103, in sync raise SessionException(self.error()) SessionException: (None, 'connection aborted') EXCEPTION in Broker._v1Cb: (None, 'connection aborted') Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/qmf/console.py", line 2518, in _v1Dispatch self._v1DispatchProtected(msg) File "/usr/lib/python2.4/site-packages/qmf/console.py", line 2568, in _v1DispatchProtected elif opcode == 'q': self.session._handleClassInd (self, codec, seq) File "/usr/lib/python2.4/site-packages/qmf/console.py", line 1113, in _handleClassInd broker._send(smsg) File "/usr/lib/python2.4/site-packages/qmf/console.py", line 2428, in _send self.amqpSession.message_transfer(destination=dest, message=msg) File "/usr/lib/python2.4/site-packages/qpid/generator.py", line 25, in <lambda> method = lambda self, *args, **kwargs: self.invoke(op, args, kwargs) File "/usr/lib/python2.4/site-packages/qpid/session.py", line 138, in invoke return self.do_invoke(op, args, kwargs) File "/usr/lib/python2.4/site-packages/qpid/session.py", line 183, in do_invoke self.sync(self.timeout) File "/usr/lib/python2.4/site-packages/qpid/session.py", line 103, in sync raise SessionException(self.error()) SessionException: (None, 'connection aborted') [ OK ] Starting Qpid AMQP daemon: [ OK ] Actual results: Exception occurs Expected results: No exception Additional info:
Please retest on cumin-0.1.4560 or later
Note, you will want to make sure that no cumin-data/web processes are killed. You will also want to look in /var/log/cumin/* for exceptions from here on out.
Verified on cumin-0.1.4573-2.el5 Processes are running: # ps -e | grep cumin 4027 ? 00:00:00 cumin 4029 ? 00:00:02 cumin-web 4030 ? 00:00:03 cumin-web 4031 ? 00:00:02 cumin-web 4032 ? 00:00:02 cumin-web 4033 ? 00:00:14 cumin-data # grep -i trace /var/log/cumin/* || echo nothing nothing
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause Cumin does not handle cases in which the qpidd broker exits after it is connected. Consequence Cumin will raise unhandled exceptions and cease to operate. Fix Handle the exception and display an informative message in the GUI if the broker is unavailable. Result Cumin will not display exception traces or crash if the broker is stopped. If the broker is started again, cumin will eventually connect to the new broker instance and continue to operate.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2011-0889.html