This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.3 by this push:
     new 60b37bbdf71 HADOOP-18433. Fix main thread name for . (#4838) (#5692)
60b37bbdf71 is described below

commit 60b37bbdf712f5c17230318c4e7c7ec5ce57cedc
Author: Doroszlai, Attila <6454655+adorosz...@users.noreply.github.com>
AuthorDate: Mon Jun 5 07:51:53 2023 +0200

    HADOOP-18433. Fix main thread name for . (#4838) (#5692)
    
    (cherry picked from commit f68f1a45783d7eb3f982fadef800b58ab8b763f3)
    
    Co-authored-by: zhengchenyu <zhengcheny...@gmail.com>
---
 .../hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java      | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java
 
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java
index 07cff6eac08..939180b195c 100644
--- 
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java
+++ 
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java
@@ -1284,8 +1284,7 @@ public abstract class Server {
       bind(acceptChannel.socket(), address, backlogLength, conf, 
portRangeConfig);
       //Could be an ephemeral port
       this.listenPort = acceptChannel.socket().getLocalPort();
-      Thread.currentThread().setName("Listener at " +
-          bindAddress + "/" + this.listenPort);
+      LOG.info("Listener at {}:{}", bindAddress, this.listenPort);
       // create a selector;
       selector= Selector.open();
       readers = new Reader[readThreads];


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to