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

HBaseAdmin.mergeRegions should recognize both full region names and encoded region names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.0, 1.3.0, 2.0.0
    • Admin
    • None
    • Reviewed

    Description

      HBaseAdmin.mergeRegions() calls HBaseAdmin.getRegion() internally. HBaseAdmin.getRegion() requires the full region name. So MetaTableAccessor.getRegion always returns null and this causes one more meta table scan.

        Pair<HRegionInfo, ServerName> getRegion(final byte[] regionName) throws IOException {
          if (regionName == null) {
            throw new IllegalArgumentException("Pass a table name or region name");
          }
          Pair<HRegionInfo, ServerName> pair =
            MetaTableAccessor.getRegion(connection, regionName);
          if (pair == null) {
      

      I suppose to use full region names instead of encoded region names in HBaseAdmin.mergeRegions().

      Attachments

        1. HBASE-14824.patch
          17 kB
          Eungsop Yoo
        2. HBASE-14824-v1.patch
          5 kB
          Eungsop Yoo
        3. HBASE-14824-v2.patch
          7 kB
          Eungsop Yoo

        Activity

          People

            Eungsop Yoo Eungsop Yoo
            Eungsop Yoo Eungsop Yoo
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: