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)