Skip to content

Commit c8dcf42

Browse files
committed
update
1 parent 9dbdcb8 commit c8dcf42

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

core/src/test/scala/org/apache/spark/scheduler/BarrierTaskContextSuite.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class BarrierTaskContextSuite extends SparkFunSuite with LocalSparkContext {
3232
// call is actually useful.
3333
.setMaster("local-cluster[4, 1, 1024]")
3434
.setAppName("test-cluster")
35-
.set("spark.barrier.sync.timeout", "1")
3635
.set(TEST_NO_STAGE_RETRY, true)
3736
sc = new SparkContext(conf)
3837
}
@@ -81,6 +80,7 @@ class BarrierTaskContextSuite extends SparkFunSuite with LocalSparkContext {
8180

8281
test("throw exception on barrier() call timeout") {
8382
initLocalClusterSparkContext()
83+
sc.conf.set("spark.barrier.sync.timeout", "1")
8484
val rdd = sc.makeRDD(1 to 10, 4)
8585
val rdd2 = rdd.barrier().mapPartitions { it =>
8686
val context = BarrierTaskContext.get()
@@ -101,6 +101,7 @@ class BarrierTaskContextSuite extends SparkFunSuite with LocalSparkContext {
101101

102102
test("throw exception if barrier() call doesn't happen on every task") {
103103
initLocalClusterSparkContext()
104+
sc.conf.set("spark.barrier.sync.timeout", "1")
104105
val rdd = sc.makeRDD(1 to 10, 4)
105106
val rdd2 = rdd.barrier().mapPartitions { it =>
106107
val context = BarrierTaskContext.get()
@@ -119,6 +120,7 @@ class BarrierTaskContextSuite extends SparkFunSuite with LocalSparkContext {
119120

120121
test("throw exception if the number of barrier() calls are not the same on every task") {
121122
initLocalClusterSparkContext()
123+
sc.conf.set("spark.barrier.sync.timeout", "1")
122124
val rdd = sc.makeRDD(1 to 10, 4)
123125
val rdd2 = rdd.barrier().mapPartitions { it =>
124126
val context = BarrierTaskContext.get()

0 commit comments

Comments
 (0)