[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-4909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

luozongle updated ZOOKEEPER-4909:
---------------------------------
    Description: I noticed that a while loop is used here to avoid spurious 
wakeups. I think we should calculate the total sleep time to prevent it from 
exceeding requestTimeout too much in case of spurious wakeups and the server 
not responding for a long time.  (was: 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.)

> 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
>            Priority: Trivial
>         Attachments: Snipaste_2025-03-18_21-35-42.png
>
>
> I noticed that a while loop is used here to avoid spurious wakeups. I think 
> we should calculate the total sleep time to prevent it from exceeding 
> requestTimeout too much in case of spurious wakeups and the server not 
> responding for a long time.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to