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

    https://github.com/apache/spark/pull/6034#discussion_r30095919
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/dstream/DStream.scala ---
    @@ -321,6 +320,48 @@ abstract class DStream[T: ClassTag] (
       }
     
       /**
    +   * Helper method to generate an RDD for the specified time.
    +   * This sets and resets the relevant local variables before and after 
the call to compute.
    +   */
    +  private def doCompute(time: Time): Option[RDD[T]] = {
    +    val scopeKey = SparkContext.RDD_SCOPE_KEY
    +    val scopeNoOverrideKey = SparkContext.RDD_SCOPE_NO_OVERRIDE_KEY
    +    // Set the thread-local property for call sites to this DStream's 
creation site
    --- End diff --
    
    Can you update the comments to generalize it to both call sites and scopes?



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