Examples of wasKilled()


Examples of com.hubspot.singularity.executor.task.SingularityExecutorTask.wasKilled()

    SingularityExecutorTaskProcessCallable runningProcess = null;

    task.getLock().lock();

    try {
      if (task.wasKilled()) {
        return KillState.ALREADY_REQUESTED;
      }

      task.markKilled();
View Full Code Here

Examples of org.apache.cassandra.utils.KillerForTests.wasKilled()

        Config.CommitFailurePolicy oldPolicy = DatabaseDescriptor.getCommitFailurePolicy();
        try
        {
            DatabaseDescriptor.setCommitFailurePolicy(Config.CommitFailurePolicy.die);
            CommitLog.handleCommitError("Testing die policy", new Throwable());
            Assert.assertTrue(killerForTests.wasKilled());
        }
        finally
        {
            DatabaseDescriptor.setCommitFailurePolicy(oldPolicy);
            JVMStabilityInspector.replaceKiller(originalKiller);
View Full Code Here

Examples of org.apache.hadoop.mapred.TaskTracker.TaskInProgress.wasKilled()

   * @param tid task attempt ID
   * @return true if the task can be killed
   */
  private boolean isKillable(TaskAttemptID tid) {
      TaskInProgress tip = taskTracker.runningTasks.get(tid);
      return tip != null && !tip.wasKilled() &&
             (tip.getRunState() == TaskStatus.State.RUNNING ||
              tip.getRunState() == TaskStatus.State.COMMIT_PENDING);
  }

  public void shutdown() {
View Full Code Here

Examples of org.apache.hadoop.mapred.TaskTracker.TaskInProgress.wasKilled()

          TaskInProgress tip = taskTracker.getRunningTask(tid);
          if (tip == null) {
            continue;
          }
          if (tip.wasKilled()) {
            continue;
          }

          LOG.debug("Constructing ProcessTree for : PID = " + pId + " TID = "
              + tid);
View Full Code Here

Examples of org.apache.hadoop.mapred.TaskTracker.TaskInProgress.wasKilled()

   * @param tid task attempt ID
   * @return true if the task can be killed
   */
  private boolean isKillable(TaskAttemptID tid) {
      TaskInProgress tip = taskTracker.getRunningTask(tid);
      return tip != null && !tip.wasKilled() &&
             (tip.getRunState() == TaskStatus.State.RUNNING ||
              tip.getRunState() == TaskStatus.State.COMMIT_PENDING);
  }
}
View Full Code Here

Examples of org.apache.hadoop.mapred.TaskTracker.TaskInProgress.wasKilled()

   * @param tid task attempt ID
   * @return true if the task can be killed
   */
  private boolean isKillable(TaskAttemptID tid) {
      TaskInProgress tip = taskTracker.runningTasks.get(tid);
      return tip != null && !tip.wasKilled() &&
             (tip.getRunState() == TaskStatus.State.RUNNING ||
              tip.getRunState() == TaskStatus.State.COMMIT_PENDING);
  }
}
View Full Code Here

Examples of org.apache.hadoop.mapred.TaskTracker.TaskInProgress.wasKilled()

   * @param tid task attempt ID
   * @return true if the task can be killed
   */
  private boolean isKillable(TaskAttemptID tid) {
      TaskInProgress tip = taskTracker.runningTasks.get(tid);
      return tip != null && !tip.wasKilled() &&
             (tip.getRunState() == TaskStatus.State.RUNNING ||
              tip.getRunState() == TaskStatus.State.COMMIT_PENDING);
  }

  public void shutdown() {
View Full Code Here

Examples of org.apache.hadoop.mapred.TaskTracker.TaskInProgress.wasKilled()

   * @param tid task attempt ID
   * @return true if the task can be killed
   */
  private boolean isKillable(TaskAttemptID tid) {
    TaskInProgress tip = taskTracker.runningTasks.get(tid);
    return tip != null && !tip.wasKilled() &&
      (tip.getRunState() == TaskStatus.State.RUNNING ||
      tip.getRunState() == TaskStatus.State.COMMIT_PENDING);
  }

  public void shutdown() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.