Skip to content

Commit 45ad7f0

Browse files
aarondavpwendell
authored andcommitted
Call correct stop().
Oopsie in #504. Author: Aaron Davidson <[email protected]> Closes #527 from aarondav/stop and squashes the following commits: 8d1446a [Aaron Davidson] Call correct stop().
1 parent e03bc37 commit 45ad7f0

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)