You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by za...@apache.org on 2022/11/09 11:18:41 UTC
[hadoop] branch trunk updated: HADOOP-18433. Fix main thread name for . (#4838)
This is an automated email from the ASF dual-hosted git repository.
zanderxu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new f68f1a45783 HADOOP-18433. Fix main thread name for . (#4838)
f68f1a45783 is described below
commit f68f1a45783d7eb3f982fadef800b58ab8b763f3
Author: zhengchenyu <zh...@gmail.com>
AuthorDate: Wed Nov 9 19:18:31 2022 +0800
HADOOP-18433. Fix main thread name for . (#4838)
---
.../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 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];
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org