hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhr...@apache.org
Subject svn commit: r583926 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/dfs/FSEditLog.java
Date Thu, 11 Oct 2007 19:32:53 GMT
Author: dhruba
Date: Thu Oct 11 12:32:53 2007
New Revision: 583926

URL: http://svn.apache.org/viewvc?rev=583926&view=rev
Log:
HADOOP-2026. Namenode prints out one log line for "Number of transactions"
at most once every minute. (Dhruba Borthakur)


Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSEditLog.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?rev=583926&r1=583925&r2=583926&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Thu Oct 11 12:32:53 2007
@@ -382,6 +382,9 @@
     edits log. Reduce the number of syncs by double-buffering the changes
     to the transaction log. (Dhruba Borthakur)
 
+    HADOOP-2026. Namenode prints out one log line for "Number of transactions"
+    at most once every minute. (Dhruba Borthakur)
+
 
 Release 0.14.2 - 2007-10-09
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSEditLog.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSEditLog.java?rev=583926&r1=583925&r2=583926&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSEditLog.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSEditLog.java Thu Oct 11 12:32:53
2007
@@ -209,6 +209,7 @@
     fsimage = image;
     isSyncRunning = false;
     metrics = NameNode.getNameNodeMetrics();
+    lastPrintTime = FSNamesystem.now();
   }
 
   private File getEditFile(int idx) {
@@ -718,7 +719,7 @@
   //
   private void printStatistics(boolean force) {
     long now = FSNamesystem.now();
-    if (lastPrintTime + 60000 < now && !force) {
+    if (lastPrintTime + 60000 > now && !force) {
       return;
     }
     if (editStreams == null) {



Mime
View raw message