You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "luozongle (Jira)" <ji...@apache.org> on 2025/03/18 15:43:00 UTC
[jira] [Created] (ZOOKEEPER-4909) When a spurious wakeup occurs, the client’s waiting time may exceed requestTimeout.
luozongle created ZOOKEEPER-4909:
------------------------------------
Summary: When a spurious wakeup occurs, the client’s waiting time may exceed requestTimeout.
Key: ZOOKEEPER-4909
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4909
Project: ZooKeeper
Issue Type: Improvement
Components: java client
Reporter: luozongle
Attachments: Snipaste_2025-03-18_21-35-42.png
I noticed that a while loop is used here to prevent spurious wakeups. I think we should calculate the total sleep time to ensure that if a spurious wakeup occurs and the server does not respond for an extended period, the sleep time does not exceed requestTimeout.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)