chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r1205725 - in /incubator/chukwa/trunk: CHANGES.txt src/main/java/org/apache/hadoop/chukwa/extraction/archive/ChukwaArchiveManager.java
Date Thu, 24 Nov 2011 05:43:54 GMT
Author: eyang
Date: Thu Nov 24 05:43:53 2011
New Revision: 1205725

URL: http://svn.apache.org/viewvc?rev=1205725&view=rev
Log:
CHUKWA-593. Fixed infinite loop archiving at midnight. (Sourygna Luangsay via Eric Yang)

Modified:
    incubator/chukwa/trunk/CHANGES.txt
    incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/extraction/archive/ChukwaArchiveManager.java

Modified: incubator/chukwa/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/chukwa/trunk/CHANGES.txt?rev=1205725&r1=1205724&r2=1205725&view=diff
==============================================================================
--- incubator/chukwa/trunk/CHANGES.txt (original)
+++ incubator/chukwa/trunk/CHANGES.txt Thu Nov 24 05:43:53 2011
@@ -96,6 +96,8 @@ Trunk (unreleased changes)
 
   BUG FIXES
 
+    CHUKWA-593. Fixed infinite loop archiving at midnight. (Sourygna Luangsay via Eric Yang)
+
     CHUKWA-602. Set svn ignore properties to ignore eclipse and maven files. (Eric Yang)
 
     CHUKWA-597. Close stderr and stdout after parent process detached.  (Eric Yang)

Modified: incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/extraction/archive/ChukwaArchiveManager.java
URL: http://svn.apache.org/viewvc/incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/extraction/archive/ChukwaArchiveManager.java?rev=1205725&r1=1205724&r2=1205725&view=diff
==============================================================================
--- incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/extraction/archive/ChukwaArchiveManager.java
(original)
+++ incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/extraction/archive/ChukwaArchiveManager.java
Thu Nov 24 05:43:53 2011
@@ -195,7 +195,7 @@ public class ChukwaArchiveManager implem
     int fileCount = 0;
     for (FileStatus fsDataSinkDir : dataSinkDirsInRawArchiveDir) {
       long modificationDate = fsDataSinkDir.getModificationTime();
-      if (modificationDate < oneHourAgo) {
+      if (modificationDate < oneHourAgo || workingDay < currentDay) {
         log.info("processDay,modificationDate:" + modificationDate +", adding: " + fsDataSinkDir.getPath()
);
         fileCount += fs.listStatus(fsDataSinkDir.getPath()).length;
         moveDataSinkFilesToArchiveMrInput(fsDataSinkDir,archivesMRInputDir);



Mime
View raw message