-
- Downloads
[SPARK-17742][CORE] Handle child process exit in SparkLauncher.
Currently the launcher handle does not monitor the child spark-submit process it launches; this means that if the child exits with an error, the handle's state will never change, and an application will not know that the application has failed. This change adds code to monitor the child process, and changes the handle state appropriately when the child process exits. Tested with added unit tests. Author: Marcelo Vanzin <vanzin@cloudera.com> Closes #18877 from vanzin/SPARK-17742.
Showing
- core/src/test/java/org/apache/spark/launcher/SparkLauncherSuite.java 2 additions, 2 deletions...st/java/org/apache/spark/launcher/SparkLauncherSuite.java
- launcher/src/main/java/org/apache/spark/launcher/ChildProcAppHandle.java 49 additions, 16 deletions...in/java/org/apache/spark/launcher/ChildProcAppHandle.java
- launcher/src/main/java/org/apache/spark/launcher/OutputRedirector.java 13 additions, 3 deletions...main/java/org/apache/spark/launcher/OutputRedirector.java
- launcher/src/test/java/org/apache/spark/launcher/ChildProcAppHandleSuite.java 34 additions, 12 deletions...va/org/apache/spark/launcher/ChildProcAppHandleSuite.java
- launcher/src/test/resources/log4j.properties 1 addition, 1 deletionlauncher/src/test/resources/log4j.properties
Please register or sign in to comment