hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhr...@apache.org
Subject svn commit: r689315 - /hadoop/core/trunk/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java
Date Wed, 27 Aug 2008 01:05:25 GMT
Author: dhruba
Date: Tue Aug 26 18:05:24 2008
New Revision: 689315

URL: http://svn.apache.org/viewvc?rev=689315&view=rev
Log:
HADOOP-2330. Preallocate HDFS transaction log to improve performance.
Cleaned up debug logs.


Modified:
    hadoop/core/trunk/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java

Modified: hadoop/core/trunk/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java?rev=689315&r1=689314&r2=689315&view=diff
==============================================================================
--- hadoop/core/trunk/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java (original)
+++ hadoop/core/trunk/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java Tue Aug
26 18:05:24 2008
@@ -221,12 +221,12 @@
     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);
       }



Mime
View raw message