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 
      

        Activity

        Hide
        githubbot ASF GitHub Bot added a comment -

        GitHub user jinossy opened a pull request:

        https://github.com/apache/tajo/pull/376

        TAJO-1336: Fix task failure of stopped task

        You can merge this pull request into a Git repository by running:

        $ git pull https://github.com/jinossy/tajo TAJO-1336

        Alternatively you can review and apply these changes as the patch at:

        https://github.com/apache/tajo/pull/376.patch

        To close this pull request, make a commit to your master/trunk branch
        with (at least) the following in the commit message:

        This closes #376


        commit 969e304452a104dfa556747da4de02a3167b3edb
        Author: jhkim <jhkim@apache.org>
        Date: 2015-02-05T09:07:38Z

        TAJO-1336: Fix task failure of stopped task


        Show
        githubbot ASF GitHub Bot added a comment - GitHub user jinossy opened a pull request: https://github.com/apache/tajo/pull/376 TAJO-1336 : Fix task failure of stopped task You can merge this pull request into a Git repository by running: $ git pull https://github.com/jinossy/tajo TAJO-1336 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/tajo/pull/376.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #376 commit 969e304452a104dfa556747da4de02a3167b3edb Author: jhkim <jhkim@apache.org> Date: 2015-02-05T09:07:38Z TAJO-1336 : Fix task failure of stopped task
        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user blrunner commented on the pull request:

        https://github.com/apache/tajo/pull/376#issuecomment-73172555

        +1

        It looks good to me and all unit test cases finished successfully.
        Ship it.

        Show
        githubbot ASF GitHub Bot added a comment - Github user blrunner commented on the pull request: https://github.com/apache/tajo/pull/376#issuecomment-73172555 +1 It looks good to me and all unit test cases finished successfully. Ship it.
        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user asfgit closed the pull request at:

        https://github.com/apache/tajo/pull/376

        Show
        githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/tajo/pull/376
        Hide
        jhkim Jinho Kim added a comment -

        committed it.
        Thanks Jaehwa Jung for the review!

        Show
        jhkim Jinho Kim added a comment - committed it. Thanks Jaehwa Jung for the review!
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Tajo-master-build #583 (See https://builds.apache.org/job/Tajo-master-build/583/)
        TAJO-1336: Fix task failure of stopped task. (jinho) (jhkim: rev 161ee9ebc641f7e2ab326360b7fc26ab318ef72c)

        • tajo-core/src/main/java/org/apache/tajo/worker/TaskAttemptContext.java
        • tajo-core/src/main/java/org/apache/tajo/worker/TaskRunnerManager.java
        • CHANGES
        • tajo-core/src/main/java/org/apache/tajo/worker/Task.java
        • tajo-core/src/main/java/org/apache/tajo/worker/ExecutionBlockContext.java
        • tajo-core/src/test/java/org/apache/tajo/querymaster/TestKillQuery.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Tajo-master-build #583 (See https://builds.apache.org/job/Tajo-master-build/583/ ) TAJO-1336 : Fix task failure of stopped task. (jinho) (jhkim: rev 161ee9ebc641f7e2ab326360b7fc26ab318ef72c) tajo-core/src/main/java/org/apache/tajo/worker/TaskAttemptContext.java tajo-core/src/main/java/org/apache/tajo/worker/TaskRunnerManager.java CHANGES tajo-core/src/main/java/org/apache/tajo/worker/Task.java tajo-core/src/main/java/org/apache/tajo/worker/ExecutionBlockContext.java tajo-core/src/test/java/org/apache/tajo/querymaster/TestKillQuery.java
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Tajo-master-CODEGEN-build #222 (See https://builds.apache.org/job/Tajo-master-CODEGEN-build/222/)
        TAJO-1336: Fix task failure of stopped task. (jinho) (jhkim: rev 161ee9ebc641f7e2ab326360b7fc26ab318ef72c)

        • tajo-core/src/test/java/org/apache/tajo/querymaster/TestKillQuery.java
        • tajo-core/src/main/java/org/apache/tajo/worker/ExecutionBlockContext.java
        • CHANGES
        • tajo-core/src/main/java/org/apache/tajo/worker/Task.java
        • tajo-core/src/main/java/org/apache/tajo/worker/TaskRunnerManager.java
        • tajo-core/src/main/java/org/apache/tajo/worker/TaskAttemptContext.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Tajo-master-CODEGEN-build #222 (See https://builds.apache.org/job/Tajo-master-CODEGEN-build/222/ ) TAJO-1336 : Fix task failure of stopped task. (jinho) (jhkim: rev 161ee9ebc641f7e2ab326360b7fc26ab318ef72c) tajo-core/src/test/java/org/apache/tajo/querymaster/TestKillQuery.java tajo-core/src/main/java/org/apache/tajo/worker/ExecutionBlockContext.java CHANGES tajo-core/src/main/java/org/apache/tajo/worker/Task.java tajo-core/src/main/java/org/apache/tajo/worker/TaskRunnerManager.java tajo-core/src/main/java/org/apache/tajo/worker/TaskAttemptContext.java

          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:

              Development