deniskuzZ commented on code in PR #5613:
URL: https://github.com/apache/hive/pull/5613#discussion_r1923526846
##########
ql/src/java/org/apache/hadoop/hive/ql/Driver.java:
##########
@@ -755,6 +753,13 @@ int closeInProcess(boolean destroyed) {
// is called to stop the query if it is running, clean query results, and
release resources.
@Override
public void close() {
+ if
(driverContext.getConf().getBoolVar(HiveConf.ConfVars.HIVE_QUERY_HISTORY_SERVICE_ENABLED))
{
+ if (driverState.isClosed() || driverState.isDestroyed()){
+ LOG.warn("Driver instance {} already closed or destroyed, prevent
handling query history", this);
+ } else{
+ QueryHistoryService.handle(driverContext);
Review Comment:
the method name is wage, what does it do `handle`?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]