[ 
https://issues.apache.org/jira/browse/SPARK-56575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SPARK-56575:
-----------------------------------
    Labels: pull-request-available  (was: )

> Extract scheduleResubmit() helper to remove identical code blocks
> -----------------------------------------------------------------
>
>                 Key: SPARK-56575
>                 URL: https://issues.apache.org/jira/browse/SPARK-56575
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Spark Core
>    Affects Versions: 4.2.0
>            Reporter: Xingbo Jiang
>            Assignee: Xingbo Jiang
>            Priority: Major
>              Labels: pull-request-available
>
> The following 5-line block appears verbatim at different locations in 
> DAGScheduler.scala:
> ```
> messageScheduler.schedule(
>   new Runnable {
>     override def run(): Unit = eventProcessLoop.post(ResubmitFailedStages())
>   },
>   RESUBMIT_TIMEOUT, TimeUnit.MILLISECONDS)
> ```
> We should extract a private helper method scheduleResubmit() and replace all 
> different call sites with the helper method.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to