vanzin commented on issue #23801: [SPARK-26891][YARN] Fixing flaky test in YarnSchedulerBackendSuite URL: https://github.com/apache/spark/pull/23801#issuecomment-464249676 Ok, found it. It's not multiple schedulers being active, it's because of that code starting the scheduler endpoint; `DriverEndpoint.onStart` runs a periodic task that ends up calling the method the method that is being complained about. If it's called at the same time as the mock is being modified in L54 of the test, things blow up. So the "delayed initialization" of the driver endpoint that I suggested would fix it.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
