[
https://issues.apache.org/jira/browse/HADOOP-18433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17630384#comment-17630384
]
ASF GitHub Bot commented on HADOOP-18433:
-----------------------------------------
zhengchenyu commented on PR #4838:
URL: https://github.com/apache/hadoop/pull/4838#issuecomment-1307127048
> How about moving line1397 to line 1513? Correct it, not delete
Line 1410 has already set thread name, I think just delete is ok.
```
this.setName("IPC Server listener on " + port);
```
> Fix main thread name.
> ---------------------
>
> Key: HADOOP-18433
> URL: https://issues.apache.org/jira/browse/HADOOP-18433
> Project: Hadoop Common
> Issue Type: Improvement
> Components: common, ipc
> Affects Versions: 3.2.1
> Reporter: zhengchenyu
> Priority: Major
> Labels: pull-request-available
>
> The server's main thread is "Listener at ${hostname}/9000", it is confused
> easily. We can see the main thread like below.
> {code:java}
> "Listener at ${hostname}/9000" #1 prio=5 os_prio=0 tid=0x00007f8068016000
> nid=0x5c086 in Object.wait() [0x00007f806f1d4000]
> java.lang.Thread.State: WAITING (on object monitor)
> at java.lang.Object.wait(Native Method)
> - waiting on <0x00007f7552553010> (a
> org.apache.hadoop.ipc.ProtobufRpcEngine$Server)
> at java.lang.Object.wait(Object.java:502)
> at org.apache.hadoop.ipc.Server.join(Server.java:3449)
> - locked <0x00007f7552553010> (a
> org.apache.hadoop.ipc.ProtobufRpcEngine$Server)
> at
> org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.join(NameNodeRpcServer.java:613)
> at
> org.apache.hadoop.hdfs.server.namenode.NameNode.join(NameNode.java:1014)
> at
> org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1774)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]