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

Change HBCK2's setRegionState() to use HBCK's setRegionStateInMeta()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.4.13
    • None
    • hbck2
    • None

    Description

      Replica region id is  not recognized by hbck2's setRegionState as it does not show up in meta. We run into cases that it needs to set region state in meta for replica regions in order to fix inconsistency. We ended up writing the state manually into meta table and did a master failover to sync state from meta table. 

       

      hbck2's setRegionState needs to support replica region id and handles it nicely.

      Currently, setRegionState does not use MasterRpcServices#setRegionStateInMeta. There is an issue in setRegionStateInMeta to support replica regions. After that is fixed, and setRegionState uses setRegionStateInMeta to set the region state, it will support replica Id.

      Attachments

        Issue Links

          Activity

            People

              huaxiangsun Huaxiang Sun
              huaxiangsun Huaxiang Sun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: