public void removeLiveQueryInfo(Operation operation) {
    if (operation instanceof SQLOperation) {
      OperationHandle operationHandle = operation.getHandle();
      synchronized (webuiLock) {
        String opKey = operationHandle.getHandleIdentifier().toString();
        // remove from list of live operations
        QueryInfo display = liveQueryInfos.remove(opKey);
        if (display == null) {
          LOG.debug("Unexpected display object value of null for operation {}",
              opKey);
        } else if (historicalQueryInfos != null) {
          // add to list of saved historic operations
          historicalQueryInfos.put(opKey, display);
        }
      }
    }
  }
Remove the live operation's query info from the {@link #liveQueryInfos},
and push the query info to the historic query cache if enabled.
@param operation the to remove operation
service/src/java/org/apache/hive/service/cli/operation/QueryInfoCache.java