Merge "Check node is unallocated before max-ready clean"
This commit is contained in:
commit
0ee4b06199
@ -759,7 +759,7 @@ class CleanupWorker(BaseCleanupWorker):
|
||||
|
||||
# Double check the state now that we have a lock since it
|
||||
# may have changed on us.
|
||||
if node.state != zk.READY:
|
||||
if node.state != zk.READY or node.allocated_to:
|
||||
zk_conn.unlockNode(node)
|
||||
continue
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user