-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-20691][CORE] Difference between Storage Memory as seen internally and in web UI #18229
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
Changed the Strings from MegaBytes to MebiBytes (and likewise for other sizes)
|
No, this is wrong. The function is still computing megabytes, etc. |
Changed the calculation of bytesToString towards MebiBytes instead of Megabytes
…stead of Megabytes" This reverts commit 7c775d9.
Changed the result string to indicate MebiBytes
|
@srowen , my apologies, I must have misunderstood you. Can you please help me with the one? |
Update the test to take into account the newly returned String
|
Those tests are wrong, in that 2000000 bytes is not "1953.1 KB". It is "1953.1 KiB". And so on. The numbers should stay the same to make sure behavior doesn't actually change, but the labels should be fixed. The |
formatBytes should calculate MiB instead of MB.
|
OK, the tests are fixed to take this into account. There is still a small difference between BytesToString and FormatBytes, because the first only goes towards a higher size when it is at least 2 MiB, fe. |
srowen
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.
That's looking good. It may be worth searching the code for any other instances of "KB" to see if anything else is formatting numbers inconsistently.
I think this is a safe fix because it is cosmetic.
|
@srowen , |
Changed the variable names to reflect the difference between MegaBytes en MebiBytes
|
@srowen , I changed the variable names for |
|
Test build #3783 has finished for PR 18229 at commit
|
|
@mkesselaers looks like there is at least one more test testing the formatted string that will need to be updated |
Fixed filling test
|
@srowen, you're right. I changed the strings there as well. |
|
Test build #3784 has finished for PR 18229 at commit
|
|
@kishorvpatil @wzhfy do you have any thoughts on this? it touches some code you created |
|
I agree with changing the base 1000 to 1024. About |
|
@mkesselaers are you still working on this? |
|
gentle ping @mkesselaers |
|
Can one of the admins verify this patch? |
|
gentle ping @mkesselaers |
Closes apache#17422 Closes apache#17619 Closes apache#18034 Closes apache#18229 Closes apache#18268 Closes apache#17973 Closes apache#18125 Closes apache#18918 Closes apache#19274 Closes apache#19456 Closes apache#19510 Closes apache#19420 Closes apache#20090 Closes apache#20177 Closes apache#20304 Closes apache#20319 Closes apache#20543 Closes apache#20437 Closes apache#21261 Closes apache#21726 Closes apache#14653 Closes apache#13143 Closes apache#17894 Closes apache#19758 Closes apache#12951 Closes apache#17092 Closes apache#21240 Closes apache#16910 Closes apache#12904 Closes apache#21731 Closes apache#21095 Added: Closes apache#19233 Closes apache#20100 Closes apache#21453 Closes apache#21455 Closes apache#18477 Added: Closes apache#21812 Closes apache#21787 Author: hyukjinkwon <[email protected]> Closes apache#21781 from HyukjinKwon/closing-prs.
What changes were proposed in this pull request?
Changed the Strings from MegaBytes to MebiBytes (and likewise for other sizes)
Please review http://spark.apache.org/contributing.html before opening a pull request.