Apache9 commented on PR #5837:
URL: https://github.com/apache/hbase/pull/5837#issuecomment-2096066904

   Have you guys find the way to use timer to implement the timeout?
   You can see the code in AsyncRpcRetryingCaller.
   
   And for ZKConnectionRegistry, you can pass the TIMER in AsyncConnectionImpl 
to the ReadOnlyZKClient, and use it in ReadOnlyZKClient. More specific, you can 
schedule a timer task when calling the exec method for ZKTask, and once we 
reach the timeout time, we call completeExceptionally on the future in ZKTask.
   
   Thanks.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to