vanzin commented on a change in pull request #25779: [SPARK-27468][core] Track correct storage level and mem/disk usage for RDDs. URL: https://github.com/apache/spark/pull/25779#discussion_r329679204
########## File path: core/src/main/scala/org/apache/spark/status/LiveEntity.scala ########## @@ -269,13 +278,127 @@ private class LiveExecutor(val executorId: String, _addTime: Long) extends LiveE var usedOnHeap = 0L var usedOffHeap = 0L + /** + * RDD block info. Keeps track of which blocks are stored in this executor, to help with RDD usage + * accounting. This uses nested maps to make it easier to remove information when RDDs are + * unpersisted. First level key is the RDD id, second is the split index. + * + * This is a var so that we can "clear" it and restart with a new map when it becomes empty, + * to save some memory. + */ + private var rddBlockUsage = new OpenHashMap[Int, RDDBlockTracker]() Review comment: No. You also missed the comment on the very previous line. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
