Github user jerryshao commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13658#discussion_r67016886
  
    --- Diff: 
yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala ---
    @@ -513,13 +517,16 @@ private[spark] class ApplicationMaster(
             logInfo("Waiting for spark context initialization ... ")
             sparkContextRef.wait(10000L)
           }
    -
    -      val sparkContext = sparkContextRef.get()
    -      if (sparkContext == null) {
    -        logError(("SparkContext did not initialize after waiting for %d 
ms. Please check earlier"
    -          + " log output for errors. Failing the 
application.").format(totalWaitTime))
    +      if (!finished) {
    +        val sparkContext = sparkContextRef.get()
    +        if (sparkContext == null) {
    +          logError(("SparkContext did not initialize after waiting for %d 
ms. Please check earlier"
    +            + " log output for errors. Failing the 
application.").format(totalWaitTime))
    +        } else {
    +          Some(sparkContext)
    +        }
           }
    -      sparkContext
    +      None
    --- End diff --
    
    Will this always return `None`?


---
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]

Reply via email to