You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "uros-b (via GitHub)" <gi...@apache.org> on 2026/06/26 07:15:51 UTC
Re: [PR] [SPARK-57710][YARN][TESTS][FOLLOW-UP] Reduce YarnClusterSuite flakiness from CI runner contention [spark]
uros-b commented on code in PR #56785:
URL: https://github.com/apache/spark/pull/56785#discussion_r3479768564
##########
resource-managers/yarn/src/test/scala/org/apache/spark/deploy/yarn/BaseYarnClusterSuite.scala:
##########
@@ -261,6 +269,15 @@ abstract class BaseYarnClusterSuite extends SparkFunSuite with Matchers {
val props = new Properties()
props.put(SPARK_JARS.key, "local:" + fakeSparkJar.getAbsolutePath())
+ // On a busy CI runner the in-JVM mini cluster, the driver and the container JVMs all compete
+ // for CPU, and the driver's RPC server occasionally cannot accept a connection in time. With
+ // the default of 3 retries an executor that loses this race gives up and exits, which leaves
+ // the application unable to finish and the suite times out. Give the executor->driver
+ // connection a larger retry budget so a transient stall does not permanently fail the app.
+ // These are defaults; individual tests can still override them via extraConf below.
+ props.setProperty("spark.rpc.io.maxRetries", "10")
Review Comment:
Note: the new spark.rpc.io.* defaults are set via setProperty BEFORE the loop that copies spark.* JVM system properties, so a -Dspark.rpc.io.maxRetries flag would silently override them; the comment claims only extraConf can override. Moving the two setProperty calls to just before extraConf.foreach removes the ambiguity.
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org