Github user tgravescs commented on a diff in the pull request:
https://github.com/apache/spark/pull/11692#discussion_r57051703
--- Diff: yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala ---
@@ -975,6 +975,10 @@ private[spark] class Client(
case e: ApplicationNotFoundException =>
logError(s"Application $appId not found.")
return (YarnApplicationState.KILLED,
FinalApplicationStatus.KILLED)
+ case e: Exception if (e.isInstanceOf[InterruptedException]
+ || e.getCause.isInstanceOf[InterruptedException]) =>
+ logInfo("The reporter thread is interrupted, we assume app is
finished.")
+ return (YarnApplicationState.FINISHED,
FinalApplicationStatus.SUCCEEDED)
--- End diff --
how about we change the status to be UNDEFINED.
Since we really don't know the status it seems like returning the undefined
in this case make more sense. Hopefully the user would then go look more at the
RM or spark job details.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]