incubator-hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon (Created) (JIRA)" <>
Subject [jira] [Created] (HAMA-473) Local files should be deleted when task is completed or killed
Date Thu, 10 Nov 2011 11:00:51 GMT
Local files should be deleted when task is completed or killed

                 Key: HAMA-473
             Project: Hama
          Issue Type: Bug
          Components: bsp
    Affects Versions: 0.3.0
            Reporter: Edward J. Yoon
            Assignee: Edward J. Yoon
             Fix For: 0.4.0

I think, below codes should be just moved into Child.done() method.

          if (taskStatus.getRunState() == TaskStatus.State.RUNNING) {

            if (!tip.runner.isAlive()) {
              if (taskStatus.getRunState() != TaskStatus.State.FAILED) {
      "Task '" + taskStatus.getTaskId().toString()
                    + "' has completed.");

and, local files should be deleted when task is completed, or killed.

            // TODO Use the cleanup thread
            // tasksToCleanup.put(action);

            KillTaskAction killAction = (KillTaskAction) action;
            if (tasks.containsKey(killAction.getTaskID())) {
              TaskInProgress tip = tasks.get(killAction.getTaskID());
              try {
              } catch (IOException ioe) {
                throw new DirectiveException("Error when killing a "
                    + "TaskInProgress.", ioe);

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message