@Override
  public void process() throws IOException {
    long startTime = EnvironmentEdgeManager.currentTime();
    Status status = null;
    try {
      status = this.splitTaskExecutor.exec(splitTaskDetails.getWALFile(), reporter);
      switch (status) {
        case DONE:
          coordination.endTask(new SplitLogTask.Done(this.serverName),
            SplitLogCounters.tot_wkr_task_done, splitTaskDetails);
          break;
        case PREEMPTED:
          SplitLogCounters.tot_wkr_preempt_task.increment();
          LOG.warn("task execution preempted " + splitTaskDetails.getWALFile());
          break;
        case ERR:
          if (server != null && !server.isStopped()) {
            coordination.endTask(new SplitLogTask.Err(this.serverName),
              SplitLogCounters.tot_wkr_task_err, splitTaskDetails);
            break;
          }
          // if the RS is exiting then there is probably a tons of stuff
          // that can go wrong. Resign instead of signaling error.
          // $FALL-THROUGH$
        case RESIGNED:
          if (server != null && server.isStopped()) {
            LOG.info("task execution interrupted because worker is exiting "
              + splitTaskDetails.toString());
          }
          coordination.endTask(new SplitLogTask.Resigned(this.serverName),
            SplitLogCounters.tot_wkr_task_resigned, splitTaskDetails);
          break;
      }
    } finally {
      LOG.info("Worker " + serverName + " done with task " + splitTaskDetails.toString() + " in "
        + (EnvironmentEdgeManager.currentTime() - startTime) + "ms. Status = " + status);
      this.inProgressTasks.decrementAndGet();
    }
  }
Handles log splitting a wal Used by the zk-based distributed log splitting. Created by
ZKSplitLogWorkerCoordination.
@deprecated since 2.4.0 and in 3.0.0, to be removed in 4.0.0, replaced by procedure-based
            distributed WAL splitter, see SplitWALManager
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/WALSplitterHandler.java