spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayousterhout <...@git.apache.org>
Subject [GitHub] spark pull request: SPARK-897: preemptively serialize closures
Date Fri, 14 Mar 2014 19:03:33 GMT
Github user kayousterhout commented on a diff in the pull request:

    https://github.com/apache/spark/pull/143#discussion_r10622183
  
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/dstream/DStream.scala ---
    @@ -533,7 +533,7 @@ abstract class DStream[T: ClassTag] (
        * on each RDD of 'this' DStream.
        */
       def transform[U: ClassTag](transformFunc: RDD[T] => RDD[U]): DStream[U] = {
    -    transform((r: RDD[T], t: Time) => context.sparkContext.clean(transformFunc(r)))
    +    transform((r: RDD[T], t: Time) => context.sparkContext.clean(transformFunc(r),
false))
    --- End diff --
    
    Why do we need to set this to false for the tests?  Is this because the tests don't have
a serializer set up?


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

Mime
View raw message