You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by yc...@apache.org on 2015/12/02 23:56:30 UTC
hive git commit: HIVE-12517: Beeline's use of failed connection(s)
causes failures and leaks. (Naveen Gangam via Yongzhi Chen)
Repository: hive
Updated Branches:
refs/heads/master 1c69604c6 -> 354358ee2
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/354358ee
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/354358ee
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/354358ee
Branch: refs/heads/master
Commit: 354358ee2682573da915e86848db36dc7bcb0170
Parents: 1c69604
Author: Yongzhi Chen <yc...@apache.org>
Authored: Wed Dec 2 17:54:58 2015 -0500
Committer: Yongzhi Chen <yc...@apache.org>
Committed: Wed Dec 2 17:54:58 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/354358ee/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 745f694..08f3846 100644
--- a/beeline/src/java/org/apache/hive/beeline/Commands.java
+++ b/beeline/src/java/org/apache/hive/beeline/Commands.java
@@ -1398,6 +1398,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);