Skip to content

Commit 8d1446a

Browse files
committed
Call correct stop().
1 parent 1fdf659 commit 8d1446a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,12 @@ private[spark] class DiskBlockManager(shuffleManager: ShuffleBlockManager, rootD
150150
Runtime.getRuntime.addShutdownHook(new Thread("delete Spark local dirs") {
151151
override def run() {
152152
logDebug("Shutdown hook called")
153-
stop()
153+
DiskBlockManager.this.stop()
154154
}
155155
})
156156
}
157157

158+
/** Cleanup local dirs and stop shuffle sender. */
158159
private[spark] def stop() {
159160
localDirs.foreach { localDir =>
160161
if (localDir.isDirectory() && localDir.exists()) {

0 commit comments

Comments
 (0)