Fix Nodepool election suspended callback
2024-05-03 09:29:54,805 ERROR zuul.zk.base.ZooKeeperClient: Exception calling listener: Traceback (most recent call last): File "/opt/zuul/lib/python3.11/site-packages/kazoo/protocol/connection.py", line 179, in _socket_error_handling yield File "/opt/zuul/lib/python3.11/site-packages/kazoo/protocol/connection.py", line 331, in _write bytes_sent = self._socket.send(msg_slice) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/ssl.py", line 1242, in send return self._sslobj.write(data) ^^^^^^^^^^^^^^^^^^^^^^^^ ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2427) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/zuul/lib/python3.11/site-packages/kazoo/protocol/connection.py", line 609, in _connect_attempt self._send_request(read_timeout, connect_timeout) File "/opt/zuul/lib/python3.11/site-packages/kazoo/protocol/connection.py", line 486, in _send_request self._submit(request, connect_timeout, xid) File "/opt/zuul/lib/python3.11/site-packages/kazoo/protocol/connection.py", line 315, in _submit self._write(int_struct.pack(len(b)) + b, timeout) File "/opt/zuul/lib/python3.11/site-packages/kazoo/protocol/connection.py", line 321, in _write with self._socket_error_handling(): File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ self.gen.throw(typ, value, traceback) File "/opt/zuul/lib/python3.11/site-packages/kazoo/protocol/connection.py", line 182, in _socket_error_handling raise ConnectionDropped("socket connection error: %s" % (err,)) kazoo.exceptions.ConnectionDropped: socket connection error: EOF occurred in violation of protocol (_ssl.c:2427) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/zuul/lib/python3.11/site-packages/zuul/zk/__init__.py", line 104, in _connectionListener listener() File "/opt/zuul/lib/python3.11/site-packages/zuul/zk/nodepool.py", line 104, in _onSuspended self.connection_suspended_callback() TypeError: 'Event' object is not callable Change-Id: I34bb28c0543581479e3da227c0bfe83921033408
This commit is contained in:
parent
25cc922116
commit
f9d946c1f5
@ -45,7 +45,7 @@ class Nodepool(object):
|
||||
zk_client,
|
||||
enable_node_request_cache=True,
|
||||
node_request_event_callback=self._handleNodeRequestEvent,
|
||||
connection_suspended_callback=self.stop_watcher_event,
|
||||
connection_suspended_callback=self.stop_watcher_event.set,
|
||||
enable_node_cache=True)
|
||||
self.election = NodepoolEventElection(zk_client)
|
||||
self.event_thread = threading.Thread(target=self.runEventElection)
|
||||
|
Loading…
x
Reference in New Issue
Block a user