-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-40428][CORE] Fix shutdown hook in the CoarseGrainedSchedulerBackend #37885
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
Conversation
… since we've got zombie pods hanging around since the resource tie isn't perfect.
| private var _shutdownHookRef: AnyRef = _ | ||
|
|
||
| _shutdownHookRef = ShutdownHookManager.addShutdownHook( | ||
| ShutdownHookManager.DEFAULT_SHUTDOWN_PRIORITY) { () => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit. indentation?
|
SparkContext.stop -> _dagScheduler.stop -> taskScheduler.stop -> backend.stop |
|
hmm for whatever reason that doesn't seem to be triggering for me, let me take a look through and see where things might be getting lost in that call path @mridulm |
…all stop since we've got zombie pods hanging around since the resource tie isn't perfect." This reverts commit dfa8fc5.
…ent of other shutdown failures.
| starvationTimer.cancel() | ||
| } | ||
| Utils.tryLogNonFatalError { | ||
| abortTimer.cancel() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does Timer.cancel() also require Utils.tryLogNonFatalError?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair point yeah we can back that part out it shouldn't throw unless it's null and it's a val so
|
Looks good to me - modulo @dongjoon-hyun's comment. |
… don't throw anything and add one around fallbackstorage cleanup.
|
Merged to current dev :) |
What changes were proposed in this pull request?
Fix the shutdown hook call through to CoarseGrainedSchedulerBackend
Why are the changes needed?
Sometimes if the driver shuts down abnormally resources may be left dangling.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Existing tests.