Github user squito commented on a diff in the pull request:
https://github.com/apache/spark/pull/15505#discussion_r96082178
--- Diff:
core/src/test/scala/org/apache/spark/scheduler/CoarseGrainedSchedulerBackendSuite.scala
---
@@ -38,4 +64,17 @@ class CoarseGrainedSchedulerBackendSuite extends
SparkFunSuite with LocalSparkCo
assert(smaller.size === 4)
}
+ test("Scheduler aborts stages that have unserializable partition") {
+ val conf = new SparkConf()
+ .setMaster("local-cluster[2, 1, 1024]")
+ .setAppName("test")
+ .set("spark.dynamicAllocation.testing", "true")
+ sc = new SparkContext(conf)
+ val myRDD = new NotSerializablePartitionRDD(sc, 2)
+ val e = intercept[SparkException] {
+ myRDD.count()
+ }
+ assert(e.getMessage.contains("Failed to serialize task"))
+
--- End diff --
you should add a check here that after this, you can still submit OK tasks.
eg. just
`sc.parallelize(1 to 10).count()` (similar to kay's comment about
dagschedulersuite).
---
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]