Bug 610125 - RFE: Cleaner QMF shutdown API
Summary: RFE: Cleaner QMF shutdown API
Status: NEW
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-qmf   
(Show other bugs)
Version: Development
Hardware: All
OS: Linux
Target Milestone: ---
: ---
Assignee: messaging-bugs
QA Contact: MRG Quality Engineering
Depends On:
TreeView+ depends on / blocked
Reported: 2010-07-01 15:31 UTC by Robert Rati
Modified: 2011-08-12 16:05 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Bugzilla 587166 None None None Never

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:
Actual results:

Expected results:

Additional info:

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