Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-30355][CORE] Unify isExecutorActive between CoarseGrainedSchedulerBackend and DriverEndpoint #27012

Closed
wants to merge 1 commit into from

Conversation

Ngone51
Copy link
Member

@Ngone51 Ngone51 commented Dec 26, 2019

What changes were proposed in this pull request?

Unify DriverEndpoint. executorIsAlive() and CoarseGrainedSchedulerBackend .isExecutorActive().

Why are the changes needed?

DriverEndPoint has method executorIsAlive() to check wether an executor is alive/active, while CoarseGrainedSchedulerBackend has method isExecutorActive() to do the same work. But, isExecutorActive() seems forget to consider executorsPendingLossReason. Unify these two methods makes behavior be consistent between DriverEndPoint and CoarseGrainedSchedulerBackend and make code more easier to maintain.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass Jenkins.

@SparkQA
Copy link

SparkQA commented Dec 26, 2019

Test build #115797 has finished for PR 27012 at commit 8860691.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@Ngone51
Copy link
Member Author

Ngone51 commented Dec 26, 2019

retest this please.

@Ngone51
Copy link
Member Author

Ngone51 commented Dec 26, 2019

@SparkQA
Copy link

SparkQA commented Dec 26, 2019

Test build #115807 has finished for PR 27012 at commit 8860691.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Contributor

@jiangxb1987 jiangxb1987 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in c35427f Dec 27, 2019
@Ngone51
Copy link
Member Author

Ngone51 commented Dec 27, 2019

Thanks @jiangxb1987 @cloud-fan

fqaiser94 pushed a commit to fqaiser94/spark that referenced this pull request Mar 30, 2020
…ulerBackend and DriverEndpoint

### What changes were proposed in this pull request?

Unify `DriverEndpoint. executorIsAlive()` and `CoarseGrainedSchedulerBackend .isExecutorActive()`.

### Why are the changes needed?

`DriverEndPoint` has method `executorIsAlive()` to check wether an executor is alive/active, while `CoarseGrainedSchedulerBackend` has method `isExecutorActive()` to do the same work. But, `isExecutorActive()` seems forget to consider `executorsPendingLossReason`. Unify these two methods makes behavior be consistent between `DriverEndPoint` and `CoarseGrainedSchedulerBackend` and make code more easier to maintain.

### Does this PR introduce any user-facing change?

No.

### How was this patch tested?

Pass Jenkins.

Closes apache#27012 from Ngone51/unify-is-executor-alive.

Authored-by: yi.wu <yi.wu@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants