summaryrefslogtreecommitdiff
path: root/tests/unit/test_event_queues.py
diff options
context:
space:
mode:
authorJames E. Blair <jim@acmegating.com>2021-07-02 11:38:58 -0700
committerJames E. Blair <jim@acmegating.com>2021-07-02 15:22:29 -0700
commit10966948d723ea75ca845f77d22b8623cb44eba4 (patch)
tree2f0fcd1e721ee482a2f67bb00dada2e34f25825f /tests/unit/test_event_queues.py
parent4f0ecff3a3d6f0cbe389e2ff78a682d73b4ef52a (diff)
downloadzuul-10966948d723ea75ca845f77d22b8623cb44eba4.tar.gz
Add ExistingDataWatch class
This adds a modified kazoo.DataWatch class which does not set watches on paths that don't exist. This is mostly so that when a DataWatched path is deleted, we don't leave a watch in place. Without that, the executor api will leak watches on the ZK cluster. We vendor the entire watches.py file from kazoo (ASL2 licensed) to avoid any issues with API changes. Separately we will see if they are interested in this class upstream. This updates the tests to use the wchp 4lw to test that we don't leak watches. Depends-On: https://review.opendev.org/c/zuul/zuul-jobs/+/799334 Change-Id: Ie4491eef03b58d858d95c78ba9454839d169cff1
Diffstat (limited to 'tests/unit/test_event_queues.py')
0 files changed, 0 insertions, 0 deletions