holdenk commented on a change in pull request #27636: 
[SPARK-30873][CORE][YARN]Handling Node Decommissioning for Yarn cluster manger 
in Spark
URL: https://github.com/apache/spark/pull/27636#discussion_r385898661
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/TaskEndReason.scala
 ##########
 @@ -61,6 +61,14 @@ sealed trait TaskFailedReason extends TaskEndReason {
    * on was killed.
    */
   def countTowardsTaskFailures: Boolean = true
+
+  /**
+   * Whether this task failure should be counted towards the maximum number of 
times the stage is
+   * allowed to fail before the stage is aborted. Set to false in cases where 
the task's failure
+   * was unrelated to the task; for example, if the task failed because fetch 
failed exception
+   * from the decommissioned node.
+   */
+  var countTowardsStageFailures: Boolean = true
 
 Review comment:
   Why is this a var?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to