From ec588200ccde39958e4e3349086251c1ed47c184 Mon Sep 17 00:00:00 2001 From: Yuval Shalev Date: Sun, 13 Jan 2019 21:38:11 +0200 Subject: [PATCH] Fix for not released thread in service_description The thread that is created in the 'temp_adapter' is never released, we should use task_manager.stop() to release unnecessary resources. If not released each connection to service will create a threadpool that is not detected by the garbage collector. Story: 28885 Change-Id: I2f237b7b8908d0106c2ad0f1b4b2fbf585c86465 --- openstack/service_description.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openstack/service_description.py b/openstack/service_description.py index 5abc14b00..bab08562b 100644 --- a/openstack/service_description.py +++ b/openstack/service_description.py @@ -199,6 +199,7 @@ class ServiceDescription(object): service_type=self.service_type), category=exceptions.UnsupportedServiceVersion) return temp_adapter + temp_adapter.task_manager.stop() proxy_class = self.supported_versions.get(str(found_version[0])) if not proxy_class: proxy_class = proxy.Proxy