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

assign failed may make gced parent region appear again !!!

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: proc-v2
    • Labels:
      None

      Description

      When i assign a region A the process is as follows:

      step1 : A is assigned to rs1 , and rs1 fails to open it .

      step2 : assignProcedure handleFailure .

      step3 : A is assign to rs2 and rs success to open it .

      Above is the normal flow . However when rs1 is restart after the reigon A was split and GCRegionProcedure was successed , the region A appare again !

      The region is that reigon A is not removed from the serverMap correctly when assignprocedure handleFailure . Because the code regionNode.offline() make the regionNode's regionLocation to be null and make regionNode's state to OFFLINE . So when the code env.getAssignmentManager().undoRegionAsOpening(regionNode) do nothing . So when the rs1 restart event triggers a serverCrashProcedure, it will get reigons from serverMap and it will get the region A then A will be assigned and hdfs dir will be created. 

        Attachments

        1. assign.png
          89 kB
          yuhuiyang
        2. assignProcedure.txt
          8 kB
          yuhuiyang
        3. HBASE-22631-branch-2.1-01.patch
          1 kB
          yuhuiyang
        4. HBASE-22631-branch-2.1-02.patch
          12 kB
          Wellington Chevreuil
        5. serverCrash.png
          45 kB
          yuhuiyang
        6. splitAndGc.png
          90 kB
          yuhuiyang

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                yu-huiyang yuhuiyang
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated: