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

Íñigo Goiri commented on HDFS-14608:
------------------------------------

As an example, DataXceiver outputs something like:
{code}
2019-06-25 11:00:13,218 INFO [DataXceiver for client  at /10.65.35.41:35419 
[Receiving block BP-1191059133-10.1.2.3-1458888702348:blk_1113379522_69745835]] 
org.apache.hadoop.hdfs.server.datanode.DataNode: Receiving 
BP-1191059133-10.1.2.3-1458888702348:blk_1113379522_69745835 src: 
/10.1.2.3:35419 dest: /10.1.2.4:10010
2019-06-25 11:00:13,515 INFO [DataXceiver for client  at /10.65.35.41:35419 
[Receiving block BP-1191059133-10.1.2.3-1458888702348:blk_1113379522_69745835]] 
org.apache.hadoop.hdfs.server.datanode.DataNode: Received 
BP-1191059133-10.1.2.3-1458888702348:blk_1113379522_69745835 src: 
/10.1.2.3:35419 dest: /10.1.2.4:10010 of size 485214

{code}

> DataNode$DataTransfer should be named
> -------------------------------------
>
>                 Key: HDFS-14608
>                 URL: https://issues.apache.org/jira/browse/HDFS-14608
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Íñigo Goiri
>            Priority: Minor
>             Fix For: 3.3.0
>
>
> Currently, the {{DataTransfer}} thread has no name and it just outputs the 
> default {{toString()}}.
> This shows in the logs in jstack as something like:
> {code}
> 2019-06-25 11:01:01,211 INFO 
> [org.apache.hadoop.hdfs.server.datanode.DataNode$DataTransfer@609ed67a] 
> org.apache.hadoop.hdfs.server.datanode.DataNode: DataTransfer, at 
> CO4AEAP0000C1AF:10010: Transmitted 
> BP-1191059133-10.1.2.3-1458888702348:blk_1113379522_69745835 
> (numBytes=485214) to 10.1.2.3/10.1.2.3:10010
> {code}
> As this uses the {{Daemon}} class, the name is set based on:
> {code}
>   public Daemon(Runnable runnable) {
>     super(runnable);
>     this.runnable = runnable;
>     this.setName(((Object)runnable).toString());
>   }
> {code}
> We should implement toString to at least have the name of the block being 
> transfferred or something similar to what DataXceiver does (e.g., HDFS-3375).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to