public void returnToSessionManager() throws Exception {
    // By default, TezSessionPoolManager handles this for both pool and non-pool session.
    TezSessionPoolManager.getInstance().returnSession(this);
  }
Mark session as being in use from TezTask, for safety/debugging purposes.
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionState.java