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

Region of a disabling or disabled table could be stuck in transition state when RS dies during Master initialization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94.5
    • 0.94.7
    • None
    • None
    • Reviewed

    Description

      The issue happens when a RS dies during a master starts up. After the RS reports open to the new master instance and dies immediately thereafter, the RITs of disabling tables(or disabled table) on the died RS will be in RIT state forever.

      I attached a patch to simulate the situation and you can run the following command to reproduce the issue:

      mvn test -PlocalTests -Dtest=TestMasterFailover#testMasterFailoverWithMockedRITOnDeadRS

      Basically, we skip regions of a dead server inside AM.processDeadServersAndRecoverLostRegions as the following code and relies on SSH to process those skipped regions:

                for (Pair<HRegionInfo, Result> deadRegion : deadServer.getValue()) {
                  nodes.remove(deadRegion.getFirst().getEncodedName());
                }
      

      While in SSH, we skip regions of disabling(or disabled table) again by function processDeadRegion. Finally comes to the issue that RITs of disabling(or disabled table) stuck there forever.

      Attachments

        1. HBASE-8127_94_2.patch
          13 kB
          rajeshbabu
        2. HBASE-8127_94_3.patch
          15 kB
          rajeshbabu
        3. HBASE-8127_94_4.patch
          13 kB
          rajeshbabu
        4. HBASE-8127_feedback.patch
          4 kB
          Jeffrey Zhong
        5. hbase-8127_v1.patch
          0.8 kB
          Jeffrey Zhong
        6. HBASE-8127.patch
          3 kB
          rajeshbabu
        7. reproduce-hang.patch
          3 kB
          Jeffrey Zhong

        Issue Links

          Activity

            People

              rajesh23 rajeshbabu
              jeffreyz Jeffrey Zhong
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: