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

BlockReaderRemote#readNextPacket() should log the waiting time for packet read.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • hdfs-client

    Description

      Sometime read is reported very slow due to disk or some other reason. BlockReaderRemote#readNextPacket() should print the datanode IP and waiting time in trace log.

      //Read packet headers.
      packetReceiver.receiveNextPacket(in);
      
      PacketHeader curHeader = packetReceiver.getHeader();
      curDataSlice = packetReceiver.getDataSlice();
      assert curDataSlice.capacity() == curHeader.getDataLen();
      
      LOG.trace("DFSClient readNextPacket got header {}", curHeader);

       

      Attachments

        1. HDFS-14179.001.patch
          2 kB
          Shubham Dewan
        2. HDFS-14179.002.patch
          2 kB
          Shubham Dewan
        3. HDFS-14179.003.patch
          6 kB
          Shubham Dewan

        Activity

          People

            shubham.dewan Shubham Dewan
            surendralilhore Surendra Singh Lilhore
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: