boolean getResult(long waitIfNotFinished) {
      try {
        boolean completed = this.remainingResults.await(waitIfNotFinished, TimeUnit.MILLISECONDS);
        if (!completed) {
          LOG.warn("Spent too much time [{}ms] deleting old WAL file: {}", waitIfNotFinished,
            target);
          return false;
        }
      } catch (InterruptedException e) {
        LOG.warn("Interrupted while awaiting deletion of WAL file: {}", target);
        return false;
      }
      return result.get();
    }
@param period    the period of time to sleep between each run
@param stopper   the stopper
@param conf      configuration to use
@param fs        handle to the FS
@param oldLogDir the path to the archived logs
@param pool      the thread pool used to scan directories
hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/LogCleaner.java