ctubbsii commented on issue #3087:
URL: https://github.com/apache/accumulo/issues/3087#issuecomment-1323020472

   I was responding to the general behavior described in the original post and 
first few comments. If all that is being requested here is a timeout option for 
a particular API endpoint, that's probably doable, as long as we're careful to 
not break existing expected default behavior.
   
   As a note about possible implementation, I will add that adding timeouts to 
APIs is tricky when the internal components are independently blocking. Having 
a monitor thread outside the call to the API generally seems more reliable when 
you want to be sure that it doesn't get stuck in some arbitrary code block 
that's blocking. Maybe it makes sense to just do that by running stuff in a 
separate thread, as part of a future asynchronous API instead of extending the 
existing synchronous APIs with timeout parameters.


-- 
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