Github user ConeyLiu commented on a diff in the pull request:
    --- Diff: core/src/main/scala/org/apache/spark/rdd/CartesianRDD.scala ---
    @@ -71,9 +72,92 @@ class CartesianRDD[T: ClassTag, U: ClassTag](
       override def compute(split: Partition, context: TaskContext): 
Iterator[(T, U)] = {
    +    val blockManager = SparkEnv.get.blockManager
         val currSplit = split.asInstanceOf[CartesianPartition]
    -    for (x <- rdd1.iterator(currSplit.s1, context);
    -         y <- rdd2.iterator(currSplit.s2, context)) yield (x, y)
    +    val blockId2 = RDDBlockId(, currSplit.s2.index)
    +    var cachedInLocal = false
    +    var holdReadLock = false
    +    // Try to get data from the local, otherwise it will be cached to the 
    +    def getOrElseCache(
    --- End diff --
    Ok, I will change it too.

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

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to