Repository: hive
Updated Branches:
  refs/heads/branch-1 ec1878f41 -> bf85f7a80


HIVE-12517: Beeline's use of failed connection(s) causes failures and leaks. 
(Naveen Gangam via Yongzhi Chen)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/bf85f7a8
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/bf85f7a8
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/bf85f7a8

Branch: refs/heads/branch-1
Commit: bf85f7a8082de65b052ba18ffcc70ca09984c4ad
Parents: ec1878f
Author: Yongzhi Chen <[email protected]>
Authored: Wed Dec 2 17:54:58 2015 -0500
Committer: Yongzhi Chen <[email protected]>
Committed: Wed Dec 2 17:57:06 2015 -0500

----------------------------------------------------------------------
 beeline/src/java/org/apache/hive/beeline/Commands.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/bf85f7a8/beeline/src/java/org/apache/hive/beeline/Commands.java
----------------------------------------------------------------------
diff --git a/beeline/src/java/org/apache/hive/beeline/Commands.java 
b/beeline/src/java/org/apache/hive/beeline/Commands.java
index 75e1063..bc6c241 100644
--- a/beeline/src/java/org/apache/hive/beeline/Commands.java
+++ b/beeline/src/java/org/apache/hive/beeline/Commands.java
@@ -1162,6 +1162,7 @@ public class Commands {
       beeLine.setCompletions();
       return true;
     } catch (SQLException sqle) {
+      beeLine.getDatabaseConnections().remove();
       return beeLine.error(sqle);
     } catch (IOException ioe) {
       return beeLine.error(ioe);

Reply via email to