spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yin Huai (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-20217) Executor should not fail stage if killed task throws non-interrupted exception
Date Thu, 06 Apr 2017 02:43:41 GMT

     [ https://issues.apache.org/jira/browse/SPARK-20217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Yin Huai reassigned SPARK-20217:
--------------------------------

    Assignee: Eric Liang

> Executor should not fail stage if killed task throws non-interrupted exception
> ------------------------------------------------------------------------------
>
>                 Key: SPARK-20217
>                 URL: https://issues.apache.org/jira/browse/SPARK-20217
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.2.0
>            Reporter: Eric Liang
>            Assignee: Eric Liang
>             Fix For: 2.2.0
>
>
> This is reproducible as follows. Run the following, and then use SparkContext.killTaskAttempt
to kill one of the tasks. The entire stage will fail since we threw a RuntimeException instead
of InterruptedException.
> We should probably unconditionally return TaskKilled instead of TaskFailed if the task
was killed by the driver, regardless of the actual exception thrown.
> {code}
> spark.range(100).repartition(100).foreach { i =>
>   try {
>     Thread.sleep(10000000)
>   } catch {
>     case t: InterruptedException =>
>       throw new RuntimeException(t)
>   }
> }
> {code}
> Based on the code in TaskSetManager, I think this also affects kills of speculative tasks.
However, since the number of speculated tasks is few, and usually you need to fail a task
a few times before the stage is cancelled, probably no-one noticed this in production.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message