-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
[WIP]SPARK-1712: TaskDescription instance is too big causes Spark to hang #677
Conversation
Can one of the admins verify this patch? |
@@ -414,6 +415,14 @@ private[spark] class TaskSetManager( | |||
// we assume the task can be serialized without exceptions. | |||
val serializedTask = Task.serializeWithDependencies( | |||
task, sched.sc.addedFiles, sched.sc.addedJars, ser) | |||
if (serializedTask.limit >= akkaFrameSize - 1024) { |
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 is the 1024 for?
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.
The reference Executor.scala#L235.may not suitable for here
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.
@kayousterhout - you added this. Any reason you left the 1024 of wiggle room?
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.
real example:
serialized task with dependencies |
serialized LaunchTask |
---|---|
4356 | 4797 |
2690585 | 2704141 |
5238584 | 5264580 |
The difference has been increasing
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.
ah I see - it's to leave room for the other contents of the message. In the second case here, do you know what is taking all the extra room? 2704141 - 2690585 = ~13KB which is very large for a few string/int fields!
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.
Yes, the problem is the value of uncertainty
@@ -414,6 +415,14 @@ private[spark] class TaskSetManager( | |||
// we assume the task can be serialized without exceptions. | |||
val serializedTask = Task.serializeWithDependencies( | |||
task, sched.sc.addedFiles, sched.sc.addedJars, ser) | |||
if (serializedTask.limit >= akkaFrameSize - 1024) { | |||
val msg = "Serialized task %s:%d were %d bytes which " + |
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.
It would be nicer to use string interpolation here to make it easier to parse.
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.
The reason for this is to keep the same style of the code.
Thanks for tracking down this fix. It looks good - added some small comments. |
@pwendell |
No description provided.