Uh oh!
There was an error while loading. Please reload this page.
[SPARK-20691][CORE] Difference between Storage Memory as seen internally and in web UI - #18229
[SPARK-20691][CORE] Difference between Storage Memory as seen internally and in web UI#18229mkesselaers wants to merge 8 commits into
Conversation
Changed the Strings from MegaBytes to MebiBytes (and likewise for other sizes)
srowen
commented
Jun 7, 2017
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
mkesselaers
commented
Jun 7, 2017
@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
srowen
commented
Jun 7, 2017
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.
mkesselaers
commented
Jun 7, 2017
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.
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.
mkesselaers
commented
Jun 7, 2017
@srowen , |
Changed the variable names to reflect the difference between MegaBytes en MebiBytes
mkesselaers
commented
Jun 7, 2017
@srowen , I changed the variable names for |
SparkQA
commented
Jun 7, 2017
Test build #3783 has finished for PR 18229 at commit
|
srowen
commented
Jun 7, 2017
@mkesselaers looks like there is at least one more test testing the formatted string that will need to be updated |
Fixed filling test
mkesselaers
commented
Jun 7, 2017
@srowen, you're right. I changed the strings there as well. |
SparkQA
commented
Jun 8, 2017
Test build #3784 has finished for PR 18229 at commit
|
srowen
commented
Jun 9, 2017
@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 |
jiangxb1987
commented
Aug 2, 2017
@mkesselaers are you still working on this? |
kiszk
commented
Oct 6, 2017
gentle ping @mkesselaers |
AmplabJenkins
commented
Jun 9, 2018
Can one of the admins verify this patch? |
HyukjinKwon
commented
Jul 16, 2018
gentle ping @mkesselaers |
Closesapache#17422Closesapache#17619Closesapache#18034Closesapache#18229Closesapache#18268Closesapache#17973Closesapache#18125Closesapache#18918Closesapache#19274Closesapache#19456Closesapache#19510Closesapache#19420Closesapache#20090Closesapache#20177Closesapache#20304Closesapache#20319Closesapache#20543Closesapache#20437Closesapache#21261Closesapache#21726Closesapache#14653Closesapache#13143Closesapache#17894Closesapache#19758Closesapache#12951Closesapache#17092Closesapache#21240Closesapache#16910Closesapache#12904Closesapache#21731Closesapache#21095 Added: Closesapache#19233Closesapache#20100Closesapache#21453Closesapache#21455Closesapache#18477 Added: Closesapache#21812Closesapache#21787 Author: hyukjinkwon <gurwls223@apache.org> Closesapache#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.