vanzin commented on a change in pull request #25951: [SPARK-28917][CORE]
Synchronize access to RDD mutable state.
URL: https://github.com/apache/spark/pull/25951#discussion_r331591439
##########
File path: core/src/test/scala/org/apache/spark/DistributedSuite.scala
##########
@@ -339,6 +339,21 @@ class DistributedSuite extends SparkFunSuite with
Matchers with LocalSparkContex
}
}
+ test("reference partitions inside a task") {
+ // Run a simple job which just makes sure there is no failure if we touch
rdd.partitions
+ // inside a task. This requires the stateLock to be serializable. This
is very convoluted
+ // use case, its just a check for backwards-compatibility after the fix
for SPARK-28917.
Review comment:
it's
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]