[ 
https://issues.apache.org/jira/browse/HBASE-29733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18041151#comment-18041151
 ] 

Deep Golani commented on HBASE-29733:
-------------------------------------

[~jc100102] I've raised the PR for this change; please review when you get a 
chance.

> 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
>            Assignee: Deep Golani
>            Priority: Minor
>              Labels: pull-request-available
>
> [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)

Reply via email to