Previously, deleting a datasource driver did not remove it from the DSE.
That was caused by the polling thread having a reference to the object
it was polling and therefore the object was not properly garbage
collected upon deletion.
This change deletes the polling thread and then deletes the object,
which allows garbage collection to properly eliminate the datasource.
Reviewed: https:/ /review. openstack. org/221466 /git.openstack. org/cgit/ openstack/ congress/ commit/ ?id=abd15fa36a1 3f5b95180f678bf 2c2966557e2bd8
Committed: https:/
Submitter: Jenkins
Branch: master
commit abd15fa36a13f5b 95180f678bf2c29 66557e2bd8
Author: Tim Hinrichs <email address hidden>
Date: Tue Sep 8 11:30:17 2015 -0700
Ensure datasources are properly deleted
Previously, deleting a datasource driver did not remove it from the DSE.
That was caused by the polling thread having a reference to the object
it was polling and therefore the object was not properly garbage
collected upon deletion.
This change deletes the polling thread and then deletes the object,
which allows garbage collection to properly eliminate the datasource.
Change-Id: I8063dab0786e7c 728ba0c0c9b3cc3 3748f70a38c
Closes-bug: 1493430