hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r595406 - /lucene/hadoop/trunk/src/contrib/hbase/src/test/org/apache/hadoop/hbase/TestHRegion.java
Date Thu, 15 Nov 2007 19:38:18 GMT
Author: stack
Date: Thu Nov 15 11:38:17 2007
New Revision: 595406

URL: http://svn.apache.org/viewvc?rev=595406&view=rev
Log:
HADOOP-2040 Hudson hangs AFTER test has finished
Second commit against this jira

Modified:
    lucene/hadoop/trunk/src/contrib/hbase/src/test/org/apache/hadoop/hbase/TestHRegion.java

Modified: lucene/hadoop/trunk/src/contrib/hbase/src/test/org/apache/hadoop/hbase/TestHRegion.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/hbase/src/test/org/apache/hadoop/hbase/TestHRegion.java?rev=595406&r1=595405&r2=595406&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/contrib/hbase/src/test/org/apache/hadoop/hbase/TestHRegion.java
(original)
+++ lucene/hadoop/trunk/src/contrib/hbase/src/test/org/apache/hadoop/hbase/TestHRegion.java
Thu Nov 15 11:38:17 2007
@@ -78,14 +78,14 @@
   private static final Text CONTENTS_BODY = new Text("contents:body");
   private static final Text CONTENTS_FIRSTCOL = new Text("contents:firstcol");
   private static final Text ANCHOR_SECONDCOL = new Text("anchor:secondcol");
-  
-  private static MiniDFSCluster cluster = null;
-  private static FileSystem fs = null;
-  private static Path parentdir = null;
-  private static Path newlogdir = null;
-  private static HLog log = null;
-  private static HTableDescriptor desc = null;
-  static HRegion region = null;
+
+  private MiniDFSCluster cluster = null;
+  private FileSystem fs = null;
+  private Path parentdir = null;
+  private Path newlogdir = null;
+  private HLog log = null;
+  private HTableDescriptor desc = null;
+  HRegion region = null;
   
   private static int numInserted = 0;
 
@@ -825,6 +825,11 @@
       e.printStackTrace();
     }
     if (cluster != null) {
+      try {
+        fs.close();
+      } catch (IOException e) {
+        e.printStackTrace();
+      }
       cluster.shutdown();
       cluster = null;
     }



Mime
View raw message