Ngone51 commented on a change in pull request #29732:
URL: https://github.com/apache/spark/pull/29732#discussion_r490656316
##########
File path:
core/src/test/scala/org/apache/spark/scheduler/BarrierTaskContextSuite.scala
##########
@@ -189,30 +189,23 @@ class BarrierTaskContextSuite extends SparkFunSuite with
LocalSparkContext with
test("throw exception if the number of barrier() calls are not the same on
every task") {
initLocalClusterSparkContext()
- sc.conf.set("spark.barrier.sync.timeout", "1")
+ sc.conf.set("spark.barrier.sync.timeout", "3")
val rdd = sc.makeRDD(1 to 10, 4)
val rdd2 = rdd.barrier().mapPartitions { it =>
val context = BarrierTaskContext.get()
- try {
- if (context.taskAttemptId == 0) {
Review comment:
I think it stills ensures, though task 0 has no `barrier()` call.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]