Bug 610125 - RFE: Cleaner QMF shutdown API
Summary: RFE: Cleaner QMF shutdown API
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-qmf
Version: Development
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: messaging-bugs
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-01 15:31 UTC by Robert Rati
Modified: 2020-11-04 17:54 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 587166 0 medium CLOSED exception in python qpid/qmf client 2021-02-22 00:41:40 UTC

Description Robert Rati 2010-07-01 15:31:55 UTC
Description of problem:
The python qmf api requires that the calling program keep track of all brokers created via the addBroker api call and then call deLBroker on all those brokers before exit, or else very likely see a threading exception (https://bugzilla.redhat.com/show_bug.cgi?id=587166).  The tracking of all broker objects is onerous on the program using the API.

A session.close() that automatically cleans up all allocated brokers would be an improvement, but a better solution would be for the python API to clean up after itself on shutdown.  The python api is doing threading under the hood and the api should be cleanly handling shutdown if those threads so as to prevent a threading exception even if the calling program exits without cleaning up its brokers.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:


Note You need to log in before you can comment on or make changes to this bug.