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

    https://github.com/apache/spark/pull/1723#discussion_r15726784
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/dstream/FilteredDStream.scala
 ---
    @@ -27,12 +27,17 @@ class FilteredDStream[T: ClassTag](
         filterFunc: T => Boolean
       ) extends DStream[T](parent.ssc) {
     
    +  setName("FilteredRDD")
    +
       override def dependencies = List(parent)
     
       override def slideDuration: Duration = parent.slideDuration
     
       override def compute(validTime: Time): Option[RDD[T]] = {
    -    parent.getOrCompute(validTime).map(_.filter(filterFunc))
    +    setCallSite
    +    val rdd: Option[RDD[T]] = 
parent.getOrCompute(validTime).map(_.filter(filterFunc))
    +    ssc.sparkContext.setLocalProperty(RDD_NAME, name)
    --- End diff --
    
    Whats the point of setting the property here after the RDD has been 
generated? 


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

Reply via email to