You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Viraj Jasani (Jira)" <ji...@apache.org> on 2020/05/18 15:16:00 UTC
[jira] [Created] (HBASE-24396) RetryCounter#sleepUntilNextRetry
should use uninterrupted sleep
Viraj Jasani created HBASE-24396:
------------------------------------
Summary: RetryCounter#sleepUntilNextRetry should use uninterrupted sleep
Key: HBASE-24396
URL: https://issues.apache.org/jira/browse/HBASE-24396
Project: HBase
Issue Type: Improvement
Reporter: Viraj Jasani
Assignee: Viraj Jasani
RetryCounter utility which is used at multiple places like MetaRegionLocationCache, RecoverableZookeeper etc provides a method to sleep for a back off time as supplied by the backoff policy. However, sleep used by sleepUntilNextRetry() makes thread sleep and throws InterruptedException which clients have to deal with. Clients using sleep for exponential backoff should not worry about handling InterruptedException. Dealing with InterruptedException is something for sleepUntilNextRetry() to take care of.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)