Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add a comment
 //we need to materialize the paths to delete because deleteRecursively removes items from
 //shutdownDeletePaths as we are traversing through it.
  • Loading branch information
pzzs committed Nov 25, 2015
commit cea4cd34ca186be1a1733be438e0094ff228f2a9
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ private[spark] object ShutdownHookManager extends Logging {
// Add a shutdown hook to delete the temp dirs when the JVM exits
addShutdownHook(TEMP_DIR_SHUTDOWN_PRIORITY) { () =>
logInfo("Shutdown hook called")
//we need to materialize the paths to delete because deleteRecursively removes items from
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need a space after // - otherwise this will fail the style check

//shutdownDeletePaths as we are traversing through it.
shutdownDeletePaths.toArray.foreach { dirPath =>
try {
logInfo("Deleting directory " + dirPath)
Expand Down