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

Replica region needs to check if primary region directory exists at file system in TransitRegionStateProcedure

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 3.0.0-alpha-1, 2.3.0
    • Component/s: read replicas
    • Labels:
      None

      Description

      In hbase-1, it always runs into the situation that primary region has been closed/removed and replica region still stays in master's in-memory db and open at one of the region servers. Balancer can move this replica region to a new region server. During the region open, replica region does not check if primary region has been removed and moves forward. During store open, it will recreates primary region directory at hdfs and caused inconsistency.

       

      In hbase-2, things get much better. To prevent the above inconsistency from happening, it adds more checks for a replica region, i.e, if primary regions' directory exists and there is a .regioninfo under. 

        Attachments

          Activity

            People

            • Assignee:
              huaxiangsun Huaxiang Sun
              Reporter:
              huaxiangsun Huaxiang Sun

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment