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

    https://github.com/apache/spark/pull/3486#discussion_r24117062
  
    --- Diff: 
yarn/src/test/scala/org/apache/spark/deploy/yarn/YarnClusterSuite.scala ---
    @@ -159,8 +170,19 @@ class YarnClusterSuite extends FunSuite with 
BeforeAndAfterAll with Matchers wit
     
     }
     
    +private class SaveExecutorInfo extends SparkListener {
    +  val addedExecutorInfos = mutable.Map[String, ExecutorInfo]()
    +
    +  override def onExecutorAdded(executor : SparkListenerExecutorAdded) {
    +    addedExecutorInfos(executor.executorId) = executor.executorInfo
    +  }
    +}
    +
     private object YarnClusterDriver extends Logging with Matchers {
     
    +  val WAIT_TIMEOUT_MILLIS = 10000
    +  val listener = new SaveExecutorInfo
    --- End diff --
    
    This listener object will be re-used across multiple test runs, which 
probably isn't ideal in terms of test isolation.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to