This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Description
As @kimoonkim pointed out in #119 (comment) the exit code of the driver JVM is being ignored by the rest server:
I see the driver exit code (the return value of process.waitFor below) being ignored. Maybe we should let the rest server exit using the driver exit code if it is non-zero?
waitForProcessCompleteExecutor.submit(new Runnable {
override def run(): Unit = {
process.waitFor
SERVLET_LOCK.synchronized {
logInfo("Spark application complete. Shutting down submission server...")
KubernetesSparkRestServer.this.stop
shutdownLock.countDown()
}
}
})