Skip to content

Commit

Permalink
Join on output threads to make sure any lingering output from process…
Browse files Browse the repository at this point in the history
… reaches stdout, stderr before exiting
  • Loading branch information
srowen committed Feb 26, 2015
1 parent e43139f commit ad7114e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

package org.apache.spark.deploy

import java.io.File

import scala.collection.JavaConversions._

import org.apache.spark.util.{RedirectThread, Utils}
Expand Down Expand Up @@ -164,6 +162,8 @@ private[spark] object SparkSubmitDriverBootstrapper {
}
}
val returnCode = process.waitFor()
stdoutThread.join()
stderrThread.join()
sys.exit(returnCode)
}

Expand Down

0 comments on commit ad7114e

Please sign in to comment.