Browse Source

Log exceptions deleting ZK nodes

Change-Id: I58836dafbf0846a4d6beb4a2ae5b8dfde3d5aec8
James E. Blair 4 months ago
parent
commit
bd10ff9540
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      nodepool/launcher.py

+ 5
- 1
nodepool/launcher.py View File

@@ -106,7 +106,11 @@ class NodeDeleter(threading.Thread):
106 106
         else:
107 107
             node_exists = True
108 108
 
109
-        self.delete(self._zk, self._provider_manager, self._node, node_exists)
109
+        try:
110
+            self.delete(self._zk, self._provider_manager,
111
+                        self._node, node_exists)
112
+        except Exception:
113
+            self.log.exception("Error deleting node %s:", self._node)
110 114
 
111 115
 
112 116
 class PoolWorker(threading.Thread, stats.StatsReporter):

Loading…
Cancel
Save