Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17683#discussion_r112382985
  
    --- Diff: 
core/src/main/scala/org/apache/spark/storage/BlockManagerMasterEndpoint.scala 
---
    @@ -497,11 +497,17 @@ private[spark] class BlockManagerInfo(
     
         updateLastSeenMs()
     
    +    var blockExists = false
    +    var originalMemSize: Long = 0
    +    var originalDiskSize: Long = 0
    +
         if (_blocks.containsKey(blockId)) {
           // The block exists on the slave already.
           val blockStatus: BlockStatus = _blocks.get(blockId)
           val originalLevel: StorageLevel = blockStatus.storageLevel
    -      val originalMemSize: Long = blockStatus.memSize
    +      originalMemSize = blockStatus.memSize
    --- End diff --
    
    BLocks of code even farther down can reuse these new values and need 
similar changes to the log comment


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to