pvary commented on a change in pull request #2261:
URL: https://github.com/apache/hive/pull/2261#discussion_r639572145
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/Driver.java
##########
@@ -213,7 +216,14 @@ private void runInternal(String command, boolean
alreadyCompiled) throws Command
releaseResources();
}
+ if (SessionState.get() != null) {
+ // Clean up every resource object stored in the query state
+ driverContext.getQueryState().removeResources();
Review comment:
The QueryState in the DriverContext should be removed as well when the
query finishes. Otherwise we still would have a leaked QueryState which is a
memory leak itself. So this only makes the leak smaller, but does not fix it
(if we have any)
--
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]