public synchronized void confirmFailed(String serverId) throws Exception {
      if (client.checkExists().forPath(barrierPath) != null) {
        if (client.checkExists().forPath(barrierPath + "/PROGRESS:" + serverId) != null) {
          client.delete().forPath(barrierPath + "/PROGRESS:" + serverId);
        }
        client.create().forPath(barrierPath + "/FAILED:" + serverId);
      } else {
        throw new IllegalStateException("Barrier is not initialised");
      }
    }
Confirm failure of killing the query with the queryId in the barrier.

@param serverId The serverHost confirming the request
@throws Exception If confirmation failed
service/src/java/org/apache/hive/service/server/KillQueryZookeeperManager.java