deniskuzZ commented on code in PR #4854:
URL: https://github.com/apache/hive/pull/4854#discussion_r1410687988


##########
ql/src/java/org/apache/hadoop/hive/ql/DriverState.java:
##########
@@ -89,7 +89,11 @@ public void compiling() {
   public void compilingWithLocking() {
     lock();
     try {
-      driverState = State.COMPILING;
+      if (isDestroyed() || isClosed()) {
+        abort();

Review Comment:
   `abort` is only used if the query is in the middle of compilation or 
execution 
   ````
   if (driverState.isCompiling() || driverState.isExecuting()) {
           driverState.abort();
   }
   ````



-- 
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]

Reply via email to