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

cleanIfNoMetaEntry() uses encoded instead of region name to lookup region

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.0, 1.3.0, 1.4.0, 1.1.7
    • 1.3.2, 1.4.3, 1.2.7
    • None
    • None
    • Reviewed

    Description

      In RegionStates.cleanIfNoMetaEntry()

      if (MetaTableAccessor.getRegion(server.getConnection(), hri.getEncodedNameAsBytes()) == null) {

      regionOffline(hri);

      FSUtils.deleteRegionDir(server.getConfiguration(), hri);
      }

      But api expects regionname

      public static Pair<HRegionInfo, ServerName> getRegion(Connection connection, byte [] regionName)

      So we might end up cleaning good regions.

       

      ADDENDUM:

      The scenario mentioned occurs when zkless assignment is used.  With zk-based assignment without the patch what could occur is the daughter regions are offlined and have no hdfs directory but have entries in meta. The daughter meta entries will prolly be picked up by the client causing NSREs.

      Attachments

        1. HBASE-20001.branch-1.2.001.patch
          30 kB
          Thiruvel Thirumoolan
        2. HBASE-20001.branch-1.3.001.patch
          30 kB
          Thiruvel Thirumoolan
        3. HBASE-20001.branch-1.4.001.patch
          2 kB
          Thiruvel Thirumoolan
        4. HBASE-20001.branch-1.4.002.patch
          2 kB
          Chia-Ping Tsai
        5. HBASE-20001.branch-1.4.003.patch
          28 kB
          Thiruvel Thirumoolan
        6. HBASE-20001.branch-1.4.004.patch
          28 kB
          Thiruvel Thirumoolan
        7. HBASE-20001.branch-1.4.005.patch
          30 kB
          Thiruvel Thirumoolan
        8. HBASE-20001.branch-1.4.006.patch
          30 kB
          Thiruvel Thirumoolan

        Activity

          People

            thiruvel Thiruvel Thirumoolan
            toffer Francis Christopher Liu
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: