HDFS-7084. FsDatasetImpl#copyBlockFiles debug log can be improved. (Contributed by Xiaoyu Yao)

This commit is contained in:
arp 2014-09-18 11:13:53 -07:00
parent 849ccfa699
commit 5e4627d0fb
2 changed files with 4 additions and 2 deletions

View File

@ -54,4 +54,6 @@
HDFS-7080. Fix finalize and upgrade unit test failures. (Arpit Agarwal)
HDFS-7084. FsDatasetImpl#copyBlockFiles debug log can be improved.
(Xiaoyu Yao via Arpit Agarwal)

View File

@ -637,8 +637,8 @@ static File[] copyBlockFiles(long blockId, long genStamp,
throw new IOException("Failed to copy " + srcFile + " to " + dstFile, e);
}
if (LOG.isDebugEnabled()) {
LOG.debug("addBlock: Moved " + srcMeta + " to " + dstMeta);
LOG.debug("addBlock: Moved " + srcFile + " to " + dstFile);
LOG.debug("Copied " + srcMeta + " to " + dstMeta);
LOG.debug("Copied " + srcFile + " to " + dstFile);
}
return new File[] {dstMeta, dstFile};
}