Skip to content

[Presto-on-spark native] [localMode] Close executor service on shutdown#19629

Merged
shrinidhijoshi merged 1 commit intomasterfrom
localModeHangs
May 12, 2023
Merged

[Presto-on-spark native] [localMode] Close executor service on shutdown#19629
shrinidhijoshi merged 1 commit intomasterfrom
localModeHangs

Conversation

@shrinidhijoshi
Copy link
Collaborator

If we are in localMode, the executor spawns the Executor Airlift application
(which is long running and holds onto resources) on the same JVM

On query completion, the SparkContext shutdown calls the Driver Airlift
application shutdown, but it has no hook to call Executor Airlift application
shutdown. So we hang forever.

This code, prevents this hanging state by explicity calling the
Executor Airlift application to shutdown

@shrinidhijoshi shrinidhijoshi requested a review from a team as a code owner May 12, 2023 02:21
@shrinidhijoshi shrinidhijoshi requested a review from presto-oss May 12, 2023 02:21
Copy link
Contributor

@mbasmanova mbasmanova left a comment

Choose a reason for hiding this comment

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

@shrinidhijoshi Thanks.

@shrinidhijoshi shrinidhijoshi force-pushed the localModeHangs branch 2 times, most recently from efabff5 to 34642fa Compare May 12, 2023 04:55
If we are in localMode, the executor spawns the Executor Airlift application
(which is long running and holds onto resources) on the same JVM

On query completion, the SparkContext shutdown calls the Driver Airlift
application shutdown, but it has no hook to call Executor Airlift application
shutdown. So we hang forever.

This code, prevents this hanging state by explicity calling the
Executor Airlift application to shutdown
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.

3 participants