Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-24396

RetryCounter#sleepUntilNextRetry should use uninterrupted sleep

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      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 any backoff policy should not worry about handling InterruptedException. Dealing with InterruptedException is something for sleepUntilNextRetry() to take care of.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vjasani Viraj Jasani
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: