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

Look up of Region in Master by encoded region name is O(n)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 3.0.0-alpha-1
    • 3.0.0-alpha-1, 2.6.0, 2.5.4
    • None
    • None

    Description

      {{ public RegionState getRegionState(final String encodedRegionName) {
      // TODO: Need a map <encodedName, ...> but it is just dispatch merge...
      for (RegionStateNode node: regionsMap.values()) {
      if (node.getRegionInfo().getEncodedName().equals(encodedRegionName))

      { return node.toRegionState(); }

      }
      return null;
      }}}

      It is not used much so making it trivial.

      Attachments

        Issue Links

          Activity

            People

              minwoo.kang Minwoo Kang
              stack Michael Stack
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: