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

[operator-tools] Provide a utility to detect and correct incorrect RegionInfo's in hbase:meta

    XMLWordPrintableJSON

Details

    • Reviewed
    • Hide
      This tool will read hbase:meta and report any regions whose rowkey and cell value differ in their encoded region name. HBASE-23328 illustrates a problem for read-replica enabled tables in which the encoded region name (the MD5 hash) does not match between the rowkey and the value. This problem is generally harmless for normal operation, but can break other HBCK2 tools.
      Show
      This tool will read hbase:meta and report any regions whose rowkey and cell value differ in their encoded region name. HBASE-23328 illustrates a problem for read-replica enabled tables in which the encoded region name (the MD5 hash) does not match between the rowkey and the value. This problem is generally harmless for normal operation, but can break other HBCK2 tools.

    Description

      HBASE-23328 describes a problem in which the serialized RegionInfo in the value of hbase:meta cells have an encoded regionname which doesn't match the encoded region name in the rowkey for that cell.

      This problem is normally harmless as assignment only consults the rowkey to get the encoded region name. However, this problem does break other HBCK2 tooling, like extraRegionsInMeta

      Rather than try to update each tool to account for when this problem may be present, create a new tool which an operator can run to correct meta and then use any subsequent tools as originally intended.

      Attachments

        Issue Links

          Activity

            People

              elserj Josh Elser
              elserj Josh Elser
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: