Skip to content

Commit

Permalink
[SPARK-49871][CORE][TESTS] Deflaky `(Ssl)CoarseGrainedExecutorBackend…
Browse files Browse the repository at this point in the history
…Suite` to reduce test resource and increase timeout
  • Loading branch information
dongjoon-hyun committed Oct 4, 2024
1 parent de9b9c8 commit 7037475
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import org.scalatestplus.mockito.MockitoSugar
import org.apache.spark._
import org.apache.spark.TestUtils._
import org.apache.spark.api.plugin.{DriverPlugin, ExecutorPlugin, PluginContext, SparkPlugin}
import org.apache.spark.internal.config.PLUGINS
import org.apache.spark.internal.config.{EXECUTOR_MEMORY, PLUGINS}
import org.apache.spark.resource._
import org.apache.spark.resource.ResourceUtils._
import org.apache.spark.resource.TestResourceIDs._
Expand Down Expand Up @@ -581,7 +581,8 @@ class CoarseGrainedExecutorBackendSuite extends SparkFunSuite
*/
test("SPARK-40320 Executor should exit when initialization failed for fatal error") {
val conf = createSparkConf()
.setMaster("local-cluster[1, 1, 1024]")
.setMaster("local-cluster[1, 1, 512]")
.set(EXECUTOR_MEMORY.key, "512m")
.set(PLUGINS, Seq(classOf[TestFatalErrorPlugin].getName))
.setAppName("test")
sc = new SparkContext(conf)
Expand All @@ -599,7 +600,7 @@ class CoarseGrainedExecutorBackendSuite extends SparkFunSuite
}
try {
sc.addSparkListener(listener)
eventually(timeout(15.seconds)) {
eventually(timeout(30.seconds)) {
assert(executorAddCounter.get() >= 2)
assert(executorRemovedCounter.get() >= 2)
}
Expand Down

0 comments on commit 7037475

Please sign in to comment.