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

Avoid nested retry loops in HConnectionManager

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.94.1, 0.95.0
    • Component/s: None
    • Labels:
      None

      Description

      While testing client timeouts when the HBase is not available we found that even with aggressive settings, it takes the client 10 minutes or more to finally receive an exception.
      Part of this is due to nested nested retry loops in locateRegion.

      locateRegion will first try to locate the table in meta (which is retried), then it will try to locate the meta table is root (which is also retried).
      So for each retry of the meta lookup we retry the root lookup as well.

      I have have that avoids locateRegion retrying if it is called from code that already has a retry loop.

        Attachments

        1. 6326-trunk.txt
          4 kB
          Lars Hofhansl
        2. 6326.txt
          4 kB
          Lars Hofhansl

          Activity

            People

            • Assignee:
              lhofhansl Lars Hofhansl
              Reporter:
              lhofhansl Lars Hofhansl
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: