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

[HBCK2] MasterRpcServices assigns method should try to reload regions from meta if the passed regions isn't found under AssignmentManager RegionsStateStore

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

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-1, 2.2.0, 2.3.0, 2.1.5
    • 3.0.0-alpha-1, 2.3.0
    • hbck2, master
    • None

    Description

      Although HBCK2 related, this is a master side improvement. On situations where regions are missing in META, any online fix tool such as the one being implemented in HBASE-22567 would require a further master restart to get RegionsStateStore reloaded from META, so that master can be aware of the newly re-added regions. 

      After regions are re-added to meta in CLOSED state, it should be possible to bring those by simply invoking hbck2 assigns command. But before MasterRpcServices.assigns submits an Assign procedure, it validates first if the given region is available on AssignmentManager.RegionsStateStore. The current patch reloads meta on  MasterRpcServices.assigns if the given region is not found on the first lookup, then try a new lookup again before giving-up on region assignment.

      Attachments

        1. HBASE-22707.branch-2.002.patch
          23 kB
          Wellington Chevreuil
        2. HBASE-22707.master.001.patch
          23 kB
          Wellington Chevreuil
        3. HBASE-22707.branch-2.001.patch
          2 kB
          Wellington Chevreuil

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            wchevreuil Wellington Chevreuil
            wchevreuil Wellington Chevreuil
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment