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

    https://github.com/apache/spark/pull/13962#discussion_r69253594
  
    --- Diff: 
yarn/src/test/scala/org/apache/spark/deploy/yarn/YarnClusterSuite.scala ---
    @@ -287,19 +330,19 @@ private object YarnClusterDriver extends Logging with 
Matchers {
           sc.listenerBus.waitUntilEmpty(WAIT_TIMEOUT_MILLIS)
           data should be (Set(1, 2, 3, 4))
           result = "success"
    +
    +      // Verify that the config archive is correctly placed in the 
classpath of all containers.
    --- End diff --
    
    Not changing this will cause test broken, because original calling `val 
configFromExecutors = sc.parallelize(1 to 4, 4)` after `sc.stop()` in finally 
will failed with error
    ```
    ApplicationMaster: Final app status: FAILED, exitCode: 15, (reason: User 
class threw exception: java.lang.IllegalStateException: Cannot call methods on 
a stopped SparkContext.
    ```
    
    After this patch, this problem is exposed. So I put them before `sc.stop`


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