You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "cxzl25 (via GitHub)" <gi...@apache.org> on 2023/07/19 04:52:46 UTC

[GitHub] [spark] cxzl25 commented on a diff in pull request #42061: [MINOR] Move `spark.stage.maxConsecutiveAttempts` to config

cxzl25 commented on code in PR #42061:
URL: https://github.com/apache/spark/pull/42061#discussion_r1267532678


##########
core/src/main/scala/org/apache/spark/internal/config/package.scala:
##########
@@ -2255,10 +2255,17 @@ package object config {
       .checkValue(_ >= 0, "needs to be a non-negative value")
       .createWithDefault(5)
 
+  private[spark] val STAGE_MAX_CONSECUTIVE_ATTEMPTS =
+    ConfigBuilder("spark.stage.maxConsecutiveAttempts")
+      .doc("Number of consecutive stage attempts allowed before a stage is aborted.")
+      .version("2.2.0")
+      .intConf
+      .createWithDefault(4)

Review Comment:
   Looks like it's a public configuration item since 2.2.0.
   
   https://spark.apache.org/docs/latest/configuration.html
   
   https://github.com/apache/spark/blob/9b43a9f3ea551a594835a4742f7b2d1fdb1cf518/docs/configuration.md?plain=1#L2912-L2919



-- 
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