code: void addProcessForLogTruncation(TaskAttemptID firstAttempt,
        List<Task> allAttempts) {
      LOG.info("Adding the jvm with first-attempt " + firstAttempt
          + " for logs' truncation");
      PerJVMInfo lInfo = new PerJVMInfo(allAttempts);
      synchronized (finishedJVMs) {
        finishedJVMs.put(firstAttempt, lInfo);
        finishedJVMs.notify();
      }
    }
docs: Process(JVM/debug script) has finished. Asynchronously truncate the logs of
  all the corresponding tasks to the configured limit. In case of JVM, both
  the firstAttempt as well as the list of all attempts that ran in the same
  JVM have to be passed. For debug script, the (only) attempt itself should
  be passed as both the firstAttempt as well as the list of attempts.
  
  @param firstAttempt
  @param isTaskCleanup