Merge "Ignore deleted nodes when looking for lost params"

This commit is contained in:
Zuul
2022-04-29 00:04:38 +00:00
committed by Gerrit Code Review

View File

@@ -528,6 +528,9 @@ class JobRequestQueue(ZooKeeperSimpleBase):
for data_id in self.kazoo_client.get_children(self.PARAM_ROOT):
data_path = self._getParamsPath(data_id)
data_zstat = self.kazoo_client.exists(data_path)
if not data_zstat:
# Node was deleted in the meantime
continue
if now - data_zstat.mtime > age:
data_nodes[data_id] = data_path