GitHub user jerryshao opened a pull request:
https://github.com/apache/spark/pull/8714
[SPARK-10588][Core] Fix wrong executor state in Master
`ExecutorAdded` can only be sent to `AppClient` when worker report back the
executor state as `LOADING`, otherwise because of concurrency issue,
`AppClient` will possibly receive `ExectuorAdded` at first, then
`ExecutorStateUpdated` with `LOADING` state.
Also Master will change the executor state from `LAUNCHING` to `RUNNING`,
then to `LOADING`, it should be `LAUNCHING` -> `LOADING` -> `RUNNING`.
Also it is wrongly shown in master UI, the state of executor should be
`RUNNING` rather than `LOADING`:

You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jerryshao/apache-spark SPARK-10558
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/8714.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 #8714
----
commit 57e750801610bd7b5d70070a98b0f1421dfb4d92
Author: jerryshao <[email protected]>
Date: 2015-09-11T07:03:59Z
Fix wrong executor state in Master
----
---
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]