-
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
[SPARK-4664][Core] Throw an exception when spark.akka.frameSize > 2047 #3527
Conversation
Nice catch. I don't think that it's very common to set |
Test build #23973 has started for PR 3527 at commit
|
A potential usage of It was asked in stackoverflow: http://stackoverflow.com/questions/26904619/apache-spark-message-understanding |
Test FAILed. |
Jenkins, retest this please. |
Test build #23974 has started for PR 3527 at commit
|
@zsxwing Note that the case you mentioned should no longer cause this issue either, as we use an extra compressed data structure when dealing with very large numbers of map partitions. |
In extreme case, it's still possible. For example, assume that there are 10000 partitions in map side. If the user does not set a new Admittedly, this might be a user mistake and the user should set a proper |
10000 partitions doesn't sound that extreme to me. |
Test build #23973 has finished for PR 3527 at commit
|
Test PASSed. |
I believe it is only 1 bit, not byte, per block. Further I would estimate Anyway, you can arbitrarily multiply the number of partitions to Having this check is fine, of course, whether or not users should have to |
Thank you for correcting me. Was not aware of |
Test build #23974 has finished for PR 3527 at commit
|
Test PASSed. |
Yea as @aarondav pointed out, I don't think akka framesize is going to be a problem anymore in 1.2+, regardless of the number of partitions. Still good to have this check to be defensive. |
Merging in master. |
If
spark.akka.frameSize
> 2047, it will overflow and become negative. Should have some assertion inmaxFrameSizeBytes
to warn people.