private void cleanFailedEventDirIfExists(Path dumpDir, long eventId) throws SemanticException {
    Path eventRoot = new Path(dumpDir, String.valueOf(eventId));
    Retryable retryable = Retryable.builder()
      .withHiveConf(conf)
      .withRetryOnException(IOException.class).build();
    try {
      retryable.executeCallable((Callable<Void>) () -> {
        try {
          FileSystem fs = FileSystem.get(eventRoot.toUri(), conf);
          if (fs.exists(eventRoot))  {
            fs.delete(eventRoot, true);
          }
        } catch (FileNotFoundException e) {
          // no worries
        }
        return null;
      });
    } catch (Exception e) {
      throw new SemanticException(e);
    }
  }
Decide whether to dump ACID tables.
@param tableName - Name of ACID table to be replicated
@return true if need to bootstrap dump ACID table and false if not.
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java