You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Surendra Singh Lilhore (JIRA)" <ji...@apache.org> on 2018/12/28 13:32:00 UTC
[jira] [Created] (HDFS-14179) BlockReaderRemote#readNextPacket()
should log the waiting time for packet read.
Surendra Singh Lilhore created HDFS-14179:
---------------------------------------------
Summary: BlockReaderRemote#readNextPacket() should log the waiting time for packet read.
Key: HDFS-14179
URL: https://issues.apache.org/jira/browse/HDFS-14179
Project: Hadoop HDFS
Issue Type: Bug
Components: hdfs-client
Affects Versions: 3.0.0
Reporter: Surendra Singh Lilhore
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.
{code:java}
//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);{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org