@Override
  public int execute() {
    try {
      work.replStateLog();
    } catch (Exception e) {
      LOG.error("Exception while logging metrics ", e);
      setException(e);
      return ReplUtils.handleException(true, e, work.getDumpDirectory(), work.getMetricCollector(),
              getName(), conf);
    }
    return 0;
  }
ReplStateLogTask.

Exists for the sole purpose of reducing the number of dependency edges in the task graph.
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplStateLogTask.java