You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by vg...@apache.org on 2014/10/31 09:11:56 UTC

svn commit: r1635717 - /hive/trunk/service/src/java/org/apache/hive/service/cli/operation/OperationLog.java

Author: vgumashta
Date: Fri Oct 31 08:11:56 2014
New Revision: 1635717

URL: http://svn.apache.org/r1635717
Log:
HIVE-8392: HiveServer2 Operation.close fails on windows (Vaibhav Gumashta reviewed by Thejas Nair, Gunther Hagleitner)

Modified:
    hive/trunk/service/src/java/org/apache/hive/service/cli/operation/OperationLog.java

Modified: hive/trunk/service/src/java/org/apache/hive/service/cli/operation/OperationLog.java
URL: http://svn.apache.org/viewvc/hive/trunk/service/src/java/org/apache/hive/service/cli/operation/OperationLog.java?rev=1635717&r1=1635716&r2=1635717&view=diff
==============================================================================
--- hive/trunk/service/src/java/org/apache/hive/service/cli/operation/OperationLog.java (original)
+++ hive/trunk/service/src/java/org/apache/hive/service/cli/operation/OperationLog.java Fri Oct 31 08:11:56 2014
@@ -128,6 +128,12 @@ public class OperationLog {
 
     void remove() {
       try {
+        if (in != null) {
+          in.close();
+        }
+        if (out != null) {
+          out.close();
+        }
         FileUtils.forceDelete(file);
         isRemoved = true;
       } catch (Exception e) {