You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-commits@hadoop.apache.org by el...@apache.org on 2010/12/21 22:49:20 UTC

svn commit: r1051669 - in /hadoop/hdfs/trunk: CHANGES.txt src/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java

Author: eli
Date: Tue Dec 21 21:49:20 2010
New Revision: 1051669

URL: http://svn.apache.org/viewvc?rev=1051669&view=rev
Log:
HDFS-1534. Fix some incorrect logs in FSDirectory. Contributed by Eli Collins

Modified:
    hadoop/hdfs/trunk/CHANGES.txt
    hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java

Modified: hadoop/hdfs/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/CHANGES.txt?rev=1051669&r1=1051668&r2=1051669&view=diff
==============================================================================
--- hadoop/hdfs/trunk/CHANGES.txt (original)
+++ hadoop/hdfs/trunk/CHANGES.txt Tue Dec 21 21:49:20 2010
@@ -29,6 +29,8 @@ Trunk (unreleased changes)
     HDFS-1476. listCorruptFileBlocks should be functional while the
     name node is in safe mode. (Patrick Kling via hairong)
 
+    HDFS-1534. Fix some incorrect logs in FSDirectory. (eli)
+
   OPTIMIZATIONS
 
     HDFS-1458. Improve checkpoint performance by avoiding unnecessary image

Modified: hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java?rev=1051669&r1=1051668&r2=1051669&view=diff
==============================================================================
--- hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java (original)
+++ hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java Tue Dec 21 21:49:20 2010
@@ -348,7 +348,7 @@ class FSDirectory implements Closeable {
       fileINode.addBlock(blockInfo);
 
       if(NameNode.stateChangeLog.isDebugEnabled()) {
-        NameNode.stateChangeLog.debug("DIR* FSDirectory.addFile: "
+        NameNode.stateChangeLog.debug("DIR* FSDirectory.addBlock: "
             + path + " with " + block
             + " block is added to the in-memory "
             + "file system");
@@ -417,9 +417,9 @@ class FSDirectory implements Closeable {
       // write modified block locations to log
       fsImage.getEditLog().logOpenFile(path, fileNode);
       if(NameNode.stateChangeLog.isDebugEnabled()) {
-        NameNode.stateChangeLog.debug("DIR* FSDirectory.addFile: "
+        NameNode.stateChangeLog.debug("DIR* FSDirectory.removeBlock: "
             +path+" with "+block
-            +" block is added to the file system");
+            +" block is removed from the file system");
       }
 
       // update space consumed