GitHub user XuTingjun opened a pull request:
https://github.com/apache/spark/pull/9288
[SPARK-11334] numRunningTasks can't be less than 0, or it will affect
executor allocation
With Dynamic Allocation function, a task failed over ```maxFailure``` time,
all the dependent jobs, stages, tasks will be killed or aborted. In this
process, ```SparkListenerTaskEnd``` event will be behind in
```SparkListenerStageCompleted``` and ```SparkListenerJobEnd```. Like the Event
Log below:
```
{"Event":"SparkListenerStageCompleted","Stage Info":
Unknown macro: {"Stage ID"}
Unknown macro: {"Event"}
{"Event":"SparkListenerTaskEnd","Stage ID":20,"Stage Attempt ID":0,"Task
Type":"ResultTask","Task End Reason":
Unknown macro: {"Reason"}
,"Task Info":{"Task ID":1955,"Index":88,"Attempt":2,"Launch
Time":1444914699763,"Executor
ID":"5","Host":"linux-223","Locality":"PROCESS_LOCAL","Speculative":false,"Getting
Result Time":0,"Finish Time":1444914699864,"Failed":true,"Accumulables":[]}}
```
Because that, the ```numRunningTasks``` in ```ExecutorAllocationManager```
class will be less than 0, and it will affect executor allocation.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/XuTingjun/spark SPARK-11334
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/9288.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 #9288
----
commit e32e68485eaf0ed9eed7d88478154aff8650da62
Author: xutingjun <[email protected]>
Date: 2015-10-27T03:14:56Z
numRunningTasks can't be less than 0, or it will affect executor allocation
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]