Browse Source

HADOOP-2330. Preallocate HDFS transaction log to improve performance.
Cleaned up debug logs.



git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@689315 13f79535-47bb-0310-9956-ffa450edef68

Dhruba Borthakur 16 years ago
parent
commit
46ef6bbf5f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java

+ 3 - 3
src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java

@@ -221,12 +221,12 @@ public class FSEditLog {
     private void preallocate() throws IOException {
       long position = fc.position();
       if (position + 4096 >= fc.size()) {
-        FSNamesystem.LOG.info("XXX Preallocating Edit log, current size " +
-                              fc.size());
+        FSNamesystem.LOG.debug("Preallocating Edit log, current size " +
+                                fc.size());
         long newsize = position + 1024*1024; // 1MB
         fill.position(0);
         int written = fc.write(fill, newsize);
-        FSNamesystem.LOG.info("XXX Edit log size is now " + fc.size() +
+        FSNamesystem.LOG.debug("Edit log size is now " + fc.size() +
                               " written " + written + " bytes " +
                               " at offset " +  newsize);
       }