@Override
    public void run(HookContext hookContext) throws Exception {
      if (hookContext.getHookType() == HookType.ON_FAILURE_HOOK) {
        Throwable exception = hookContext.getException();
        if (exception != null) {
          if (exception.getMessage() != null && exception.getMessage().contains("Vertex failed,")) {
            retryPossible = true;
          }
        }
      }
    }
Re-Executes a query only adding an extra overlay
ql/src/java/org/apache/hadoop/hive/ql/reexec/ReExecutionOverlayPlugin.java