Red Hat Bugzilla – Bug 610125
RFE: Cleaner QMF shutdown API
Last modified: 2011-08-12 12:05:08 EDT
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):
Steps to Reproduce: