From f68f1a45783d7eb3f982fadef800b58ab8b763f3 Mon Sep 17 00:00:00 2001 From: zhengchenyu Date: Wed, 9 Nov 2022 19:18:31 +0800 Subject: [PATCH] HADOOP-18433. Fix main thread name for . (#4838) --- .../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 17366eb9569..e10e7bfd7c1 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 @@ -1393,8 +1393,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];