[
https://issues.apache.org/jira/browse/HBASE-30566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18150055#comment-18150055
]
mintao commented on HBASE-30566:
--------------------------------
Steps to reproduce
1. Start a two-RS cluster.
2. Create a table with several regions, e.g. verify_tbl with 8 regions.
3. Make sure hbase:meta is hosted on RS1.
4. Run on RS1:
{code:bash}
bin/graceful_stop.sh --restart --reload --maxthreads 1 <RS1>
{code}
5. The unload and RS restart steps succeed. The reload step fails after
approximately 60 seconds with:
{noformat}
ERROR [pool-7-thread-1] util.RegionMover: Got Exception From Thread
While moving region java.lang.InterruptedException: sleep interrupted
java.util.concurrent.ExecutionException:
java.lang.InterruptedException: sleep interrupted
at
org.apache.hadoop.hbase.util.RegionMover.waitMoveTasksToFinish(RegionMover.java:709)
at
org.apache.hadoop.hbase.util.RegionMover.loadRegions(RegionMover.java:402)
at
org.apache.hadoop.hbase.util.RegionMover.lambda$getRegionsMovePlan$2(RegionMover.java:346)
Caused by: java.lang.InterruptedException: sleep interrupted
at java.base/java.lang.Thread.sleep(Native Method)
at org.apache.hadoop.hbase.util.MoveWithAck.call(MoveWithAck.java:89)
{noformat}
6. The script still prints "Reloaded" and exits 0. hbase:meta remains on
the source RS (RS2)
> 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
> Priority: Major
>
> 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)