chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asrab...@apache.org
Subject svn commit: r762506 - in /hadoop/chukwa/trunk: CHANGES.txt src/java/org/apache/hadoop/chukwa/datacollection/adaptor/filetailer/FileTailingAdaptor.java
Date Mon, 06 Apr 2009 21:07:35 GMT
Author: asrabkin
Date: Mon Apr  6 21:07:35 2009
New Revision: 762506

URL: http://svn.apache.org/viewvc?rev=762506&view=rev
Log:
CHUKWA-81.  Fix file descriptor leak in FileTailingAdaptors. 

Modified:
    hadoop/chukwa/trunk/CHANGES.txt
    hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/adaptor/filetailer/FileTailingAdaptor.java

Modified: hadoop/chukwa/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/CHANGES.txt?rev=762506&r1=762505&r2=762506&view=diff
==============================================================================
--- hadoop/chukwa/trunk/CHANGES.txt (original)
+++ hadoop/chukwa/trunk/CHANGES.txt Mon Apr  6 21:07:35 2009
@@ -30,6 +30,8 @@
 
   IMPROVEMENTS
 
+    CHUKWA-81.  Fix file descriptor leak.  (asrabkin)
+
     CHUKWA-29.  Added TaskTracker and DataNode client trace log parser and database loader.
 (Chris Douglas via Eric Yang)
 
     CHUKWA-86. Improved JDBC compatibility layer (Cheng Zhang via Eric Yang)

Modified: hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/adaptor/filetailer/FileTailingAdaptor.java
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/adaptor/filetailer/FileTailingAdaptor.java?rev=762506&r1=762505&r2=762506&view=diff
==============================================================================
--- hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/adaptor/filetailer/FileTailingAdaptor.java
(original)
+++ hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/adaptor/filetailer/FileTailingAdaptor.java
Mon Apr  6 21:07:35 2009
@@ -134,6 +134,10 @@
    */
   public void hardStop() throws AdaptorException {
     tailer.stopWatchingFile(this);
+    try {
+    reader.close();
+    } catch(IOException e) {
+    }
   }
 
   /**



Mime
View raw message