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

Unhealthy region is on service caused by rollback of region splitting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.92.0
    • None
    • None
    • Reviewed

    Description

      If region splitting is failed in the state of JournalEntry.CLOSED_PARENT_REGION
      It will be rollback as the following steps:

      1.case CLOSED_PARENT_REGION:
        this.parent.initialize();
              break;
      2.case CREATE_SPLIT_DIR:
          	this.parent.writestate.writesEnabled = true;
              cleanupSplitDir(fs, this.splitdir);
              break;
      3.case SET_SPLITTING_IN_ZK:
              if (server != null && server.getZooKeeper() != null) {
                cleanZK(server, this.parent.getRegionInfo());
              }
              break;
      

      If this.parent.initialize() throws IOException in step 1,
      If check filesystem is ok. it will do nothing.
      However, the parent region is on service now.

      Attachments

        1. 4881-v2.txt
          1 kB
          Michael Stack
        2. hbase-4881.patch
          2 kB
          Chunhui Shen

        Activity

          People

            zjushch Chunhui Shen
            zjushch Chunhui Shen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: