Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-1336

Fix task failure of stopped task

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.10.0
    • Component/s: Worker
    • Labels:
      None

      Description

      A task is killed, but Task.run() can try to change the task state to running.

      2015-02-05 06:01:49,971 INFO: org.apache.tajo.worker.Task (<init>(179)) - ==================================
      2015-02-05 06:01:49,971 INFO: org.apache.tajo.worker.TaskAttemptContext (setState(145)) - Query status of ta_1423116109181_0001_000003_000000_00 is changed to TA_KILLED
      2015-02-05 06:01:49,972 INFO: org.apache.tajo.worker.TaskAttemptContext (setState(145)) - Query status of ta_1423116109181_0001_000003_000000_00 is changed to TA_RUNNING
      
      ...
      
      2015-02-05 06:01:50,028 INFO: org.apache.tajo.worker.TaskRunner (stop(151)) - Stop TaskRunner: eb_1423116109181_0001_000003,container_1423116109181_0001_01_000029
      2015-02-05 06:01:50,028 ERROR: org.apache.tajo.querymaster.TaskAttempt (handle(417)) - Can't handle this event at current state of ta_1423116109181_0001_000003_000000_00), eventType:TA_FATAL_ERROR, oldState:TA_KILLED, nextState:TA_KILLED
      org.apache.hadoop.yarn.state.InvalidStateTransitonException: Invalid event: TA_FATAL_ERROR at TA_KILLED
      	at org.apache.hadoop.yarn.state.StateMachineFactory.doTransition(StateMachineFactory.java:305)
      	at org.apache.hadoop.yarn.state.StateMachineFactory.access$300(StateMachineFactory.java:46)
      	at org.apache.hadoop.yarn.state.StateMachineFactory$InternalStateMachine.doTransition(StateMachineFactory.java:448)
      	at org.apache.tajo.querymaster.TaskAttempt.handle(TaskAttempt.java:415)
      	at org.apache.tajo.querymaster.QueryMasterTask$TaskAttemptEventDispatcher.handle(QueryMasterTask.java:250)
      	at org.apache.tajo.querymaster.QueryMasterTask$TaskAttemptEventDispatcher.handle(QueryMasterTask.java:243)
      	at org.apache.hadoop.yarn.event.AsyncDispatcher.dispatch(AsyncDispatcher.java:173)
      	at org.apache.hadoop.yarn.event.AsyncDispatcher$1.run(AsyncDispatcher.java:106)
      	at java.lang.Thread.run(Thread.java:662)
      2015-02-05 06:01:50,031 INFO: org.apache.tajo.worker.TaskRunnerManager (stopTaskRunner(116)) - Stop 
      

        Attachments

          Activity

            People

            • Assignee:
              jhkim Jinho Kim
              Reporter:
              jhkim Jinho Kim
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: