Repository: hive
Updated Branches:
  refs/heads/master 6d974a907 -> 8f886f229


HIVE-14942: HS2 UI: Canceled queries show up in "Open Queries" (Tao Li via 
Mohit Sabharwal)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/8f886f22
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/8f886f22
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/8f886f22

Branch: refs/heads/master
Commit: 8f886f229931eb15f2360a7fc394a548d6c33117
Parents: 6d974a9
Author: Mohit Sabharwal <mo...@cloudera.com>
Authored: Fri Oct 14 17:14:28 2016 -0400
Committer: Mohit Sabharwal <mo...@cloudera.com>
Committed: Fri Oct 14 17:14:28 2016 -0400

----------------------------------------------------------------------
 .../org/apache/hive/service/cli/operation/OperationManager.java   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/8f886f22/service/src/java/org/apache/hive/service/cli/operation/OperationManager.java
----------------------------------------------------------------------
diff --git 
a/service/src/java/org/apache/hive/service/cli/operation/OperationManager.java 
b/service/src/java/org/apache/hive/service/cli/operation/OperationManager.java
index 3ae51b3..3f8f68e 100644
--- 
a/service/src/java/org/apache/hive/service/cli/operation/OperationManager.java
+++ 
b/service/src/java/org/apache/hive/service/cli/operation/OperationManager.java
@@ -274,6 +274,9 @@ public class OperationManager extends AbstractService {
     } else {
       LOG.debug(opHandle + ": Attempting to cancel from state - " + opState);
       operation.cancel(OperationState.CANCELED);
+      if (operation instanceof SQLOperation) {
+        removeSaveSqlOperationDisplay(opHandle);
+      }
     }
   }
 

Reply via email to