From 5e4627d0fb2a2d608c0e67fd6ad835523ed3259d Mon Sep 17 00:00:00 2001 From: arp Date: Thu, 18 Sep 2014 11:13:53 -0700 Subject: [PATCH] HDFS-7084. FsDatasetImpl#copyBlockFiles debug log can be improved. (Contributed by Xiaoyu Yao) --- hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-6581.txt | 2 ++ .../hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-6581.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-6581.txt index 98c0bcacab9..0a543a22b24 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-6581.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-6581.txt @@ -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) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java index 23753bd40f7..464d89a5ec5 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java @@ -637,8 +637,8 @@ class FsDatasetImpl implements FsDatasetSpi { 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}; }