Skip to content

[SPARK-22154] add a shutdown hook that explains why the output is terminating - #19377

Closed
liu-zhaokun wants to merge 1 commit into
apache:masterfrom
liu-zhaokun:master0928
Closed

[SPARK-22154] add a shutdown hook that explains why the output is terminating#19377
liu-zhaokun wants to merge 1 commit into
apache:masterfrom
liu-zhaokun:master0928

Conversation

@liu-zhaokun

Copy link
Copy Markdown
Contributor

It would be nice to add a shutdown hook here that explains why the output is terminating. Otherwise if the worker dies the executor logs will silently stop.

@srowen

Copy link
Copy Markdown
Member

The events of a shutdown are already logged; what does this add? it's already clear something is shutting down

@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@liu-zhaokun

Copy link
Copy Markdown
ContributorAuthor

It says that "It would be nice to add a shutdown hook here that explains why the output is terminating. Otherwise if the worker dies the executor logs will silently stop" in "TODO",I think it is justified.

@srowen

Copy link
Copy Markdown
Member

Why a shutdown hook instead of something in the lifecycle of this process?

@liu-zhaokun

Copy link
Copy Markdown
ContributorAuthor

@srowen
Sorry,I do not understand what you mean,could you explain it again?

@srowen

Copy link
Copy Markdown
Member

Where does the worker exit normally or in case of an error? Why not log there?

@liu-zhaokun

Copy link
Copy Markdown
ContributorAuthor

@srowen
This hook is only for DriverRunner.I think there was some log like this for normal executor when worker shutdown.

@jiangxb1987jiangxb1987 mentioned this pull request Nov 6, 2017
@jiangxb1987

Copy link
Copy Markdown
Contributor

I'm going to close this PR because it goes stale, please feel free to reopen it or open another PR if anyone have more thoughts on this issue.

@asfgitasfgit closed this in ed1478cNov 7, 2017
zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 22, 2025
Closesapache#11494Closesapache#14158Closesapache#16803Closesapache#16864Closesapache#17455Closesapache#17936Closesapache#19377
Added:
Closesapache#19380Closesapache#18642Closesapache#18377Closesapache#19632
Added:
Closesapache#14471Closesapache#17402Closesapache#17953Closesapache#18607
Also cc srowen vanzin HyukjinKwon gatorsmile cloud-fan to see if you have other PRs to close.
Author: Xingbo Jiang <xingbo.jiang@databricks.com>
Closesapache#19669 from jiangxb1987/stale-prs.
Sign up for freeto 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

@liu-zhaokun@srowen@AmplabJenkins@jiangxb1987