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

Filter out more invalid encoded name in isEncodedRegionName(byte[] regionName)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1
    • Client
    • None

    Description

      public static boolean isEncodedRegionName(byte[] regionName) {
        // If not parseable as region name, presume encoded. TODO: add stringency; e.g. if hex.
        return parseRegionNameOrReturnNull(regionName) == null && regionName.length <= MD5_HEX_LENGTH;
      }
      
      Right now, if it passes in an table name, it still thinks  it is a encoded region name and will result in unnecessary registry query for meta regions. This can be avoided if table names can be filtered out early in this method.

      Attachments

        Activity

          People

            huaxiangsun Huaxiang Sun
            huaxiangsun Huaxiang Sun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: