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

Haibin Huang commented on HDFS-15733:
-------------------------------------

Thanks [~elgoiri] for comment, i have updated the patch, now the debug msg look 
like this:
{code:java}
2020-12-18 21:18:10,356 DEBUG datanode.DataNode 
(BlockReceiver.java:receivePacket(541)) - Receiving one packet for block 
BP-985744046-192.168.0.100-1608297475921:blk_1073741828_0 seqno:100 
header:PacketHeader with packetLen=8 header data: offsetInBlock: 0
{code}

> Add seqno in log when BlockReceiver receive packet
> --------------------------------------------------
>
>                 Key: HDFS-15733
>                 URL: https://issues.apache.org/jira/browse/HDFS-15733
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Haibin Huang
>            Assignee: Haibin Huang
>            Priority: Minor
>         Attachments: HDFS-15733-001.patch, HDFS-15733-002.patch
>
>
> There is a debug log show when BlockReceiver receiving a new packet, however 
> now we can't tell which packet this debug log belongs to, i think it would be 
> better to add a sequence number in the log.
> now the debug log like this, missing the seqno of packet 
> {code:java}
> 2020-12-11,16:26:30,518 DEBUG 
> org.apache.hadoop.hdfs.server.datanode.DataNode: Receiving one packet for 
> block BP-XXX:blk_XXX: PacketHeader with packetLen=2559 header data: 
> offsetInBlock: 1
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to