Bug 610125

Summary: RFE: Cleaner QMF shutdown API
Product: Red Hat Enterprise MRG Reporter: Robert Rati <rrati>
Component: qpid-qmfAssignee: messaging-bugs <messaging-bugs>
Status: NEW --- QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: Development   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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: