HDFS-9706. Log more details in debug logs in BlockReceiver's constructor. (Xiao Chen via Yongjun Zhang)

This commit is contained in:
Yongjun Zhang 2016-01-28 22:53:26 -08:00
parent ac68666803
commit 8ee060311c
2 changed files with 15 additions and 6 deletions

View File

@ -1860,6 +1860,9 @@ Release 2.8.0 - UNRELEASED
HDFS-8898. Create API and command-line argument to get quota and quota HDFS-8898. Create API and command-line argument to get quota and quota
usage without detailed content summary. (Ming Ma via kihwal) usage without detailed content summary. (Ming Ma via kihwal)
HDFS-9706. Log more details in debug logs in BlockReceiver's constructor.
(Xiao Chen via Yongjun Zhang)
OPTIMIZATIONS OPTIMIZATIONS
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than

View File

@ -187,11 +187,17 @@ class BlockReceiver implements Closeable {
this.maxSendIdleTime = (long) (readTimeout * 0.9); this.maxSendIdleTime = (long) (readTimeout * 0.9);
if (LOG.isDebugEnabled()) { if (LOG.isDebugEnabled()) {
LOG.debug(getClass().getSimpleName() + ": " + block LOG.debug(getClass().getSimpleName() + ": " + block
+ "\n isClient =" + isClient + ", clientname=" + clientname + "\n storageType=" + storageType + ", inAddr=" + inAddr
+ "\n isDatanode=" + isDatanode + ", srcDataNode=" + srcDataNode + ", myAddr=" + myAddr + "\n stage=" + stage + ", newGs=" + newGs
+ "\n inAddr=" + inAddr + ", myAddr=" + myAddr + ", minBytesRcvd=" + minBytesRcvd
+ "\n cachingStrategy = " + cachingStrategy + ", maxBytesRcvd=" + maxBytesRcvd + "\n clientname=" + clientname
+ "\n pinning=" + pinning + ", srcDataNode=" + srcDataNode
+ ", datanode=" + datanode.getDisplayName()
+ "\n requestedChecksum=" + requestedChecksum
+ "\n cachingStrategy=" + cachingStrategy
+ "\n allowLazyPersist=" + allowLazyPersist + ", pinning=" + pinning
+ ", isClient=" + isClient + ", isDatanode=" + isDatanode
+ ", responseInterval=" + responseInterval
); );
} }