Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-15733

Add seqno in log when BlockReceiver receive packet

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • datanode
    • None
    • Reviewed

    Description

      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 

      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
      

      Attachments

        1. HDFS-15733-001.patch
          2 kB
          Haibin Huang
        2. HDFS-15733-002.patch
          2 kB
          Haibin Huang

        Activity

          People

            huanghaibin Haibin Huang
            huanghaibin Haibin Huang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: