gengliangwang commented on code in PR #52094:
URL: https://github.com/apache/spark/pull/52094#discussion_r2298668139


##########
sql/pipelines/src/main/scala/org/apache/spark/sql/pipelines/graph/GraphExecution.scala:
##########
@@ -49,7 +49,10 @@ abstract class GraphExecution(
 
   /** Increments flow execution retry count for `flow`. */
   private def incrementFlowToNumConsecutiveFailure(flowIdentifier: 
TableIdentifier): Unit = {
-    flowToNumConsecutiveFailure.put(flowIdentifier, 
flowToNumConsecutiveFailure(flowIdentifier) + 1)
+    flowToNumConsecutiveFailure.updateWith(flowIdentifier) {
+      case Some(count) => Some(count + 1)
+      case None => Some(1)

Review Comment:
   @JiaqiWang18 shall we have a unit test for this one?



-- 
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-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to