public static void addLoggerTask(ReplLogger replLogger, List<Task<?>> tasks, HiveConf conf) {
    String message = "Completed all external table copy tasks.";
    ReplStateLogWork replStateLogWork = new ReplStateLogWork(replLogger, message);
    Task<ReplStateLogWork> task = TaskFactory.get(replStateLogWork, conf);
    if (tasks.isEmpty()) {
      tasks.add(task);
    } else {
      DAGTraversal.traverse(tasks, new AddDependencyToLeaves(Collections.singletonList(task)));
    }
  }
Adds a logger task at the end of the tasks passed.
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/util/ReplUtils.java