mintao created HBASE-30566:
------------------------------

             Summary: RegionMover/graceful_stop --reload does not wait for the 
target RS's first RegionServerReport after HBASE-25032
                 Key: HBASE-30566
                 URL: https://issues.apache.org/jira/browse/HBASE-30566
             Project: HBase
          Issue Type: Bug
          Components: scripts, util
    Affects Versions: 2.6.7
         Environment: {{- HBase 2.6.7-hadoop3 (official Apache binary)
- JDK 11
- Hadoop 3.4.3
- Linux
- 1 HMaster + 2 RegionServers
- hbase.move.wait.max = 60 (default)
- hbase.move.retries.max = 5 (default)
- graceful_stop.sh --maxthreads 1, run locally on the RegionServer host
- Simple authentication, HDFS and ZooKeeper
- No custom hbase.master.scp.retain.assignment.force or related settings}}
            Reporter: mintao


{{RegionMover/graceful_stop --reload can time out after restarting a
RegionServer because RegionMover does not wait for the target RS to send
its first RegionServerReport.

After HBASE-25032, HMaster excludes an online RegionServer from
ServerManager#createDestinationServersList() until
ServerMetrics#getLastReportTimestamp() > 0. RegionMover#getTargetServer()
only waits for the RS to appear in Admin#getRegionServers(), so it starts
moving regions while the target RS is still ineligible for assignment.
The master reopens the region on the source RS, MoveWithAck waits for the
source to change, and after hbase.move.wait.max (default 60s) the move
pool reports InterruptedException: sleep interrupted (single meta region)
or "Could not move region" (multiple regions). graceful_stop.sh still
prints "Reloaded" and exits 0.}}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to