apache/incubator-spark — pull request #294 by RongGu (2013-12-25 12:26:13+00:00)
Title: Bug fixes for updating the RDD block's memory and disk usage information

Bug fixes for updating the RDD block's memory and disk usage information.
From the code context, we can find that the memSize and diskSize here are both always equal to the size of the block. Actually, they never be zero. Thus, the logic here is wrong for record the block usage in BlockStatus, especially for the blocks which are dropped from memory to ensure space for the new input rdd blocks. I have tested it that this would cause the storage metrics shown in the Storage webpage (such as http://172.25.132.133:4040/storage/) wrong and misleading. With this patch, the metrics will be okay.
Finally, Merry Christmas, guys:)