-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-28455][core] Avoid overflow when calculating executor timeout time #25208
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
…time. This would cause the timeout time to be negative, so executors would be timed out immediately (instead of never). I also tweaked a couple of log messages that could get pretty long when lots of executors were active. Added unit test (which failed without the fix).
|
Test build #107929 has finished for PR 25208 at commit
|
| activatedExecs += id | ||
| } else if (activatedExecs.size == 10) { | ||
| activatedExecs += "..." | ||
| } |
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.
Shall we wrap this with if (log.isDebugEnabled) { ... }, too?
| needTimeoutUpdate = true | ||
| activatedExecs += id | ||
| // Don't collect too many ids or the debug message becomes not very useful. | ||
| if (activatedExecs.size < 10) { |
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.
what about having a method for this in order to avoid code duplication?
|
LGTM |
|
Test build #108020 has finished for PR 25208 at commit
|
dongjoon-hyun
left a comment
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.
This would cause the timeout time to be negative, so executors would be
timed out immediately (instead of never).
I also tweaked a couple of log messages that could get pretty long when
lots of executors were active.
Added unit test (which failed without the fix).