Skip to content

Conversation

@iRakson
Copy link
Contributor

@iRakson iRakson commented Dec 9, 2019

What changes were proposed in this pull request?

Added shutdownHook for shutdown method of executor plugin. This will ensure that shutdown method will be called always.

Why are the changes needed?

Whenever executors are not going down gracefully, i.e getting killed due to idle time or getting killed forcefully, shutdown method of executors plugin is not getting called. Shutdown method can be used to release any resources that plugin has acquired during its initialisation. So its important to make sure that every time a executor goes down shutdown method of plugin gets called.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Tested Manually.

@iRakson iRakson changed the title [SPARK-29152]Executor Plugin shutdown when dynamic allocation is enabled [SPARK-29152][CORE]Executor Plugin shutdown when dynamic allocation is enabled Dec 9, 2019
@iRakson
Copy link
Contributor Author

iRakson commented Dec 9, 2019

cc @vanzin @srowen

@vanzin
Copy link
Contributor

vanzin commented Dec 10, 2019

ok to test

@SparkQA
Copy link

SparkQA commented Dec 10, 2019

Test build #115059 has finished for PR 26810 at commit 17a7c47.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@iRakson
Copy link
Contributor Author

iRakson commented Dec 10, 2019

org.apache.spark.rdd.AsyncRDDActionsSuite.async failure handling passes when i run it locally.

@iRakson
Copy link
Contributor Author

iRakson commented Dec 10, 2019

retest this please

1 similar comment
@vanzin
Copy link
Contributor

vanzin commented Dec 10, 2019

retest this please

@SparkQA
Copy link

SparkQA commented Dec 10, 2019

Test build #115112 has finished for PR 26810 at commit 17a7c47.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin
Copy link
Contributor

vanzin commented Dec 10, 2019

retest this please

@SparkQA
Copy link

SparkQA commented Dec 10, 2019

Test build #115123 has finished for PR 26810 at commit 17a7c47.

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

@vanzin
Copy link
Contributor

vanzin commented Dec 10, 2019

Merging to master. This will not merge cleanly to 2.4, so open a separate PR if you want the backport.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants