Jianfei Cheng created HBASE-29733:
-------------------------------------
Summary: Use ServerName instead of hostname in unloadRegions log
message
Key: HBASE-29733
URL: https://issues.apache.org/jira/browse/HBASE-29733
Project: HBase
Issue Type: Improvement
Components: util
Affects Versions: 2.5.13
Reporter: Jianfei Cheng
[UnloadRegions log
message|[https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/util/RegionMover.java#L649-L650]]
uses the hostname to show where regions are unloading from. When a host runs
multiple region servers, the hostname in the log message alone is insufficient
to identify which specific region server is unloading regions.
The proposed change is to use ServerName in the log, making it easier to
distinguish between region servers on the same host similar to [loadRegions log
message|https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/util/RegionMover.java#L366-L367].
Here are two sample log messages, one from unload regions and the other from
load regions
Unload regions
2025-11-20 10:53:31.322 [pool-7-thread-1] INFO
o.a.hadoop.hbase.util.RegionMover:472 - Moving 322 regions from host1.xyz.com
to 2 servers using 10 threads .Ack Mode: true
Load regions
2025-11-20 10:54:59.690 [pool-13-thread-1] INFO
o.a.hadoop.hbase.util.RegionMover:330 - Moving 322 regions to
thost1.xyz.com,16023,1763654092964 using 10 threads.Ack mode:true
--
This message was sent by Atlassian Jira
(v8.20.10#820010)