FAQ
Author: vgumashta
Date: Fri Oct 31 08:12:44 2014
New Revision: 1635718

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

Modified:
     hive/branches/branch-0.14/service/src/java/org/apache/hive/service/cli/operation/OperationLog.java

Modified: hive/branches/branch-0.14/service/src/java/org/apache/hive/service/cli/operation/OperationLog.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.14/service/src/java/org/apache/hive/service/cli/operation/OperationLog.java?rev=1635718&r1=1635717&r2=1635718&view=diff
==============================================================================
--- hive/branches/branch-0.14/service/src/java/org/apache/hive/service/cli/operation/OperationLog.java (original)
+++ hive/branches/branch-0.14/service/src/java/org/apache/hive/service/cli/operation/OperationLog.java Fri Oct 31 08:12:44 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) {

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupcommits @
categorieshive, hadoop
postedOct 31, '14 at 8:14a
activeOct 31, '14 at 8:14a
posts1
users1
websitehive.apache.org

1 user in discussion

Vgumashta: 1 post

People

Translate

site design / logo © 2021 Grokbase