attilapiros 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_r329751108
##########
File path: core/src/main/scala/org/apache/spark/status/LiveEntity.scala
##########
@@ -524,30 +648,35 @@ private class LiveRDD(val info: RDDInfo) extends
LiveEntity {
import LiveEntityHelpers._
- var storageLevel: String = weakIntern(info.storageLevel.description)
+ private val storageLevel = weakIntern(info.storageLevel.description)
var memoryUsed = 0L
var diskUsed = 0L
- private val partitions = new HashMap[String, LiveRDDPartition]()
+ private val partitions = new OpenHashMap[Int, LiveRDDPartition]()
private val partitionSeq = new RDDPartitionSeq()
+ private var partitionCount = 0
Review comment:
Why a separate `partitionCount` is needed? The `partitionSeq` has a length
method which follows the add/remove partition.
----------------------------------------------------------------
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]