-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-9437][core] avoid overflow in SizeEstimator #7750
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
|
any suggestions on a test that doesn't require 2 GB of memory? |
|
LGTM. Could we also check all the other instances where alignSize is called ? |
|
Test build #38853 has finished for PR 7750 at commit
|
|
@shivaram good idea. I updated one more spot where it seems there could be overflow -- I will admit I don't completely understand what is going on there, but the change seems safe. the only other place its called is https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/util/SizeEstimator.scala#L217 which is not going to overflow. |
|
Does the |
|
|
|
Yeah its tricky to add a test case for this -- We could do it by refactoring the code and testing a smaller function which takes in the array size as an argument etc. but that'll be a much bigger code change. Since this is a more contained change I'd actually recommend just merging the current diff for now. |
|
Test build #38877 has finished for PR 7750 at commit
|
|
Jenkins, retest this please |
|
Test build #149 has finished for PR 7750 at commit
|
|
Test build #38932 has finished for PR 7750 at commit
|
|
Jenkins, retest this please |
|
Test build #162 has finished for PR 7750 at commit
|
|
Test build #39039 has finished for PR 7750 at commit
|
|
LGTM. Merging this |
https://issues.apache.org/jira/browse/SPARK-9437 Author: Imran Rashid <[email protected]> Closes apache#7750 from squito/SPARK-9437_size_estimator_overflow and squashes the following commits: 29493f1 [Imran Rashid] prevent another potential overflow bc1cb82 [Imran Rashid] avoid overflow
https://issues.apache.org/jira/browse/SPARK-9437