hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@apache.org
Subject svn commit: r735140 - in /hadoop/core/trunk: CHANGES.txt src/test/org/apache/hadoop/hdfs/TestFileAppend3.java
Date Fri, 16 Jan 2009 21:16:43 GMT
Author: shv
Date: Fri Jan 16 13:16:43 2009
New Revision: 735140

URL: http://svn.apache.org/viewvc?rev=735140&view=rev
Log:
HADOOP-4965. TestFileAppend3 should close FileSystem. Contributed by Konstantin Shvachko.

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/TestFileAppend3.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=735140&r1=735139&r2=735140&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Fri Jan 16 13:16:43 2009
@@ -651,6 +651,8 @@
     HADOOP-4918. Fix bzip2 compression to work with Sequence Files.
     (Zheng Shao via dhruba).
 
+    HADOOP-4965. TestFileAppend3 should close FileSystem. (shv)
+
 Release 0.19.0 - 2008-11-18
 
   INCOMPATIBLE CHANGES

Modified: hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/TestFileAppend3.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/TestFileAppend3.java?rev=735140&r1=735139&r2=735140&view=diff
==============================================================================
--- hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/TestFileAppend3.java (original)
+++ hadoop/core/trunk/src/test/org/apache/hadoop/hdfs/TestFileAppend3.java Fri Jan 16 13:16:43
2009
@@ -59,7 +59,8 @@
     
       protected void tearDown() throws Exception {
         AppendTestUtil.LOG.info("tearDown()");
-        cluster.shutdown();
+        if(fs != null) fs.close();
+        if(cluster != null) cluster.shutdown();
       }
     };  
   }



Mime
View raw message