kgyrtkirk commented on a change in pull request #1920:
URL: https://github.com/apache/hive/pull/1920#discussion_r565992943



##########
File path: jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
##########
@@ -357,6 +357,15 @@ public HiveConnection(String uri, Properties info) throws 
SQLException {
           }
 
           if (numRetries >= maxRetries) {
+            try {
+              // Cleaning up the server resources early
+              if (!isClosed) {
+                // close the session
+                close();
+              } else if (transport != null) {
+                transport.close();
+              }

Review comment:
       I think you could also extend the close to be sure to close the 
transport if that's the only one open




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to