Skip to content

Commit 6222697

Browse files
committed
Fixed bug and adding unit test for removeBroadcast in BlockManagerSuite.
1 parent 104a89a commit 6222697

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/storage/ShuffleBlockManager.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ class ShuffleBlockManager(blockManager: BlockManager) extends Logging {
170170
}
171171

172172
/** Remove all the blocks / files and metadata related to a particular shuffle. */
173-
def removeShuffle(shuffleId: ShuffleId) {
174-
removeShuffleBlocks(shuffleId)
173+
def removeShuffle(shuffleId: ShuffleId): Boolean = {
175174
shuffleStates.remove(shuffleId)
175+
removeShuffleBlocks(shuffleId)
176176
}
177177

178178
/** Remove all the blocks / files related to a particular shuffle. */

0 commit comments

Comments
 (0)