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

    https://github.com/apache/spark/pull/3026#discussion_r19846870
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/scheduler/JobGenerator.scala
 ---
    @@ -217,14 +217,15 @@ class JobGenerator(jobScheduler: JobScheduler) 
extends Logging {
     
       /** Generate jobs and perform checkpoint for the given `time`.  */
       private def generateJobs(time: Time) {
    -    Try(graph.generateJobs(time)) match {
    +    SparkEnv.set(ssc.env)
    --- End diff --
    
    This was added when SparkEnv needed to be set for launching jobs on 
non-main threads. Since the JobGenerator is background thread which actually 
submits the jobs, the SparkEnv needed to be set. But since we have removed the 
whole threadlocal stuff from SparkEnv, this is probably not needed any more.


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