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

Fixup daughters twice cause daughter region assigned twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Implemented
    • None
    • 0.95.0
    • master
    • None
    • Reviewed

    Description

      First, how fixup daughters twice happen?
      1.we will fixupDaughters at the last of HMaster#finishInitialization
      2.ServerShutdownHandler will fixupDaughters when reassigning region through ServerShutdownHandler#processDeadRegion

      When fixupDaughters, we will added daughters to .META., but it coudn't prevent the above case, because FindDaughterVisitor.

      The detail is as the following:
      Suppose region A is a splitted parent region, and its daughter region B is missing

      1.First, ServerShutdownHander thread fixup daughter, so add daughter region B to .META. with serverName=null, and assign the daughter.

      2.Then, Master's initialization thread will also find the daughter region B is missing and assign it. It is because FindDaughterVisitor consider daughter is missing if its serverName=null

      Attachments

        1. HBASE-6228v4.patch
          9 kB
          ramkrishna.s.vasudevan
        2. HBASE-6228v3.patch
          7 kB
          Chunhui Shen
        3. HBASE-6228v2.patch
          1.0 kB
          Chunhui Shen
        4. HBASE-6228v2.patch
          0.9 kB
          Chunhui Shen
        5. HBASE-6228.patch
          0.8 kB
          Chunhui Shen

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: