Skip to content

Conversation

@tgravescs
Copy link
Contributor

https://issues.apache.org/jira/browse/SPARK-22653
executorRef.address can be null, pass the executorAddress which accounts for it being null a few lines above the fix.

Manually tested this patch. You can reproduce the issue by running a simple spark-shell in yarn client mode with dynamic allocation and request some executors up front. Let those executors idle timeout. Get a heap dump. Without this fix, you will see that addressToExecutorId still contains the ids, with the fix addressToExecutorId is properly cleaned up.

@SparkQA
Copy link

SparkQA commented Nov 29, 2017

Test build #84310 has finished for PR 19850 at commit 2703214.

  • 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, cc @cloud-fan

@jiangxb1987
Copy link
Contributor

Please update the PR title:

[SPARK-22653][CORE] executorAddress registered in CoarseGrainedSchedulerBackend.executorDataMap should not be null

@cloud-fan
Copy link
Contributor

cloud-fan commented Dec 1, 2017

good catch! merging to master/2.2!

@asfgit asfgit closed this in dc36542 Dec 1, 2017
asfgit pushed a commit that referenced this pull request Dec 1, 2017
https://issues.apache.org/jira/browse/SPARK-22653
executorRef.address can be null, pass the executorAddress which accounts for it being null a few lines above the fix.

Manually tested this patch. You can reproduce the issue by running a simple spark-shell in yarn client mode with dynamic allocation and request some executors up front. Let those executors idle timeout. Get a heap dump. Without this fix, you will see that addressToExecutorId still contains the ids, with the fix addressToExecutorId is properly cleaned up.

Author: Thomas Graves <[email protected]>

Closes #19850 from tgravescs/SPARK-22653.

(cherry picked from commit dc36542)
Signed-off-by: Wenchen Fan <[email protected]>
@tgravescs tgravescs changed the title [SPARK-22653] executorAddress registered in CoarseGrainedSchedulerBac… [SPARK-22653][CORE] executorAddress registered in CoarseGrainedSchedulerBackend.executorDataMap should not be null Dec 1, 2017
@tgravescs
Copy link
Contributor Author

thanks @cloud-fan

MatthewRBruce pushed a commit to Shopify/spark that referenced this pull request Jul 31, 2018
https://issues.apache.org/jira/browse/SPARK-22653
executorRef.address can be null, pass the executorAddress which accounts for it being null a few lines above the fix.

Manually tested this patch. You can reproduce the issue by running a simple spark-shell in yarn client mode with dynamic allocation and request some executors up front. Let those executors idle timeout. Get a heap dump. Without this fix, you will see that addressToExecutorId still contains the ids, with the fix addressToExecutorId is properly cleaned up.

Author: Thomas Graves <[email protected]>

Closes apache#19850 from tgravescs/SPARK-22653.

(cherry picked from commit dc36542)
Signed-off-by: Wenchen Fan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants