Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ class SparkSessionE2ESuite extends RemoteSparkSession {
assert(spark.getTags() == Set("one"))
try {
spark
.range(10)
.range(start = 0, end = 10, step = 1, numPartitions = 2)
.map(n => {
Thread.sleep(30000); n
Thread.sleep(40000); n
})
.collect()
} finally {
Expand All @@ -146,9 +146,9 @@ class SparkSessionE2ESuite extends RemoteSparkSession {
assert(spark.getTags() == Set("one", "two"))
try {
spark
.range(10)
.range(start = 0, end = 10, step = 1, numPartitions = 2)
.map(n => {
Thread.sleep(30000); n
Thread.sleep(40000); n
})
.collect()
} finally {
Expand All @@ -164,9 +164,9 @@ class SparkSessionE2ESuite extends RemoteSparkSession {
assert(spark.getTags() == Set("two"))
try {
spark
.range(10)
.range(start = 0, end = 10, step = 1, numPartitions = 2)
.map(n => {
Thread.sleep(30000); n
Thread.sleep(40000); n
})
.collect()
} finally {
Expand All @@ -183,9 +183,9 @@ class SparkSessionE2ESuite extends RemoteSparkSession {
assert(spark.getTags() == Set("one"))
try {
spark
.range(10)
.range(start = 0, end = 10, step = 1, numPartitions = 2)
.map(n => {
Thread.sleep(30000); n
Thread.sleep(40000); n
})
.collect()
} finally {
Expand All @@ -196,7 +196,7 @@ class SparkSessionE2ESuite extends RemoteSparkSession {

// q2 and q3 should be cancelled
interrupted.clear()
eventually(timeout(20.seconds), interval(1.seconds)) {
eventually(timeout(30.seconds), interval(1.seconds)) {
val ids = spark.interruptTag("two")
interrupted ++= ids
assert(interrupted.length == 2, s"Interrupted operations: $interrupted.")
Expand All @@ -213,7 +213,7 @@ class SparkSessionE2ESuite extends RemoteSparkSession {

// q1 and q4 should be cancelled
interrupted.clear()
eventually(timeout(20.seconds), interval(1.seconds)) {
eventually(timeout(30.seconds), interval(1.seconds)) {
val ids = spark.interruptTag("one")
interrupted ++= ids
assert(interrupted.length == 2, s"Interrupted operations: $interrupted.")
Expand Down