private void runPostDriverHooks(HiveDriverRunHookContext hookContext) throws CommandProcessorException {
    try {
      driverContext.getHookRunner().runPostDriverHooks(hookContext);
    } catch (Exception e) {
      String errorMessage = "FAILED: Hive Internal Error: " + Utilities.getNameMessage(e);
      CONSOLE.printError(errorMessage + "\n" + StringUtils.stringifyException(e));
      throw DriverUtils.createProcessorException(driverContext, 12, errorMessage,
          ErrorMsg.findSQLState(e.getMessage()), e);
    }
  }
Checks if the recorded snapshot is up-to-date
ql/src/java/org/apache/hadoop/hive/ql/Driver.java