You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2013/01/27 19:31:22 UTC

svn commit: r1439136 - /hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java

Author: hashutosh
Date: Sun Jan 27 18:31:22 2013
New Revision: 1439136

URL: http://svn.apache.org/viewvc?rev=1439136&view=rev
Log:
HIVE-3947 : MiniMR test remains pending after test completion (Navis via Ashutosh Chauhan)

Modified:
    hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java

Modified: hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java?rev=1439136&r1=1439135&r2=1439136&view=diff
==============================================================================
--- hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java (original)
+++ hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java Sun Jan 27 18:31:22 2013
@@ -318,15 +318,15 @@ public class QTestUtil {
   public void shutdown() throws Exception {
     cleanUp();
     setup.tearDown();
-    if (dfs != null) {
-      dfs.shutdown();
-      dfs = null;
-    }
-
     if (mr != null) {
       mr.shutdown();
       mr = null;
     }
+    FileSystem.closeAll();
+    if (dfs != null) {
+      dfs.shutdown();
+      dfs = null;
+    }
   }
 
   public void addFile(String qFile) throws Exception {