Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.5.2, 1.6.1
-
None
Description
Currently, updatedBlockStatuses of TaskMetrics does not update correctly when removing blocks in BlockManager.removeBlock and the method invoke removeBlock. See:
branch-1.6:https://github.com/apache/spark/blob/branch-1.6/core/src/main/scala/org/apache/spark/storage/BlockManager.scala#L1108
branch-1.5:https://github.com/apache/spark/blob/branch-1.5/core/src/main/scala/org/apache/spark/storage/BlockManager.scala#L1101
We should make sure updatedBlockStatuses update correctly when:
- Block removed from BlockManager
- Block dropped from memory to disk
- Block added to BlockManager