zuul/zuul
James E. Blair 4dabbd9502 Fix race when canceling a node request
When we cancel a node request, we delete the request from ZK.  We
might get the callback from ZK to update the node request object
(due to the delete event) in a seprate thread while the first thread
is between the lines where we delete the request and set the internal
flag indicating it was canceled.

That would cause the update callback to think that the request was
externally deleted (not by us) and resubmit it.

To correct this, set the internal canceled flag before performing the
ZK delete.

Change-Id: I1b4771b5840cb168b01939bd8590534ef618d878
2021-07-15 14:00:30 -07:00
..
ansible Add secret_data to zuul_return 2021-06-24 06:24:23 -07:00
cmd Revert "Add graceful stop environment variable" 2021-07-09 10:25:47 -07:00
connection Don't clear connection caches during full reconfig 2021-07-09 09:34:40 +02:00
driver Don't clear connection caches during full reconfig 2021-07-09 09:34:40 +02:00
execution_context Add wrapper driver execution context 2017-08-18 16:35:12 -07:00
executor Merge "Log Ansible Error Lines More Lengthy" 2021-07-08 19:08:22 +00:00
lib Block connection related variables 2021-06-24 06:24:23 -07:00
manager Switch to ZooKeeper backed NodesProvisionedEvents 2021-07-13 14:57:01 -07:00
merger Switch to ZooKeeper backed merge result events 2021-06-29 14:37:15 -07:00
reporter Check cycle items are mergeable before reporting 2021-03-01 18:45:29 +00:00
source Allow refreshing volatile data in canMerge check 2021-03-01 18:45:02 +00:00
sphinx docs: remove zuuldocs domain 2020-08-04 16:10:09 +10:00
trigger Filter events on event connection 2021-04-24 08:39:03 -07:00
web Improve component registry 2021-05-17 16:47:13 -07:00
zk Merge "Lock tenants, pipelines, queues during processing" 2021-07-15 18:25:36 +00:00
__init__.py Initial commit. 2012-05-29 14:49:32 -07:00
_setup_hook.py Revert "Revert "Create zuul/web/static on demand"" 2020-07-07 19:53:33 +02:00
change_matcher.py Match tag items against containing branches 2020-03-06 13:29:18 -08:00
configloader.py Combine full and smart reconfiguration events 2021-07-08 09:15:18 +02:00
exceptions.py web: add tenant and project scoped, JWT-protected actions 2019-07-10 12:11:14 +02:00
model.py Switch to ZooKeeper backed NodesProvisionedEvents 2021-07-13 14:57:01 -07:00
nodepool.py Fix race when canceling a node request 2021-07-15 14:00:30 -07:00
rpcclient.py Add client_id to RPC client 2020-01-28 10:16:19 +01:00
rpclistener.py Remove layout attribute from queue items 2021-06-01 18:19:39 +02:00
scheduler.py Merge "Lock tenants, pipelines, queues during processing" 2021-07-15 18:25:36 +00:00
version.py Report git sha in status page version 2018-04-27 10:21:43 -07:00