You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xingbo Jiang (Jira)" <ji...@apache.org> on 2026/04/30 19:56:00 UTC
[jira] [Resolved] (SPARK-56575) Extract scheduleResubmit() helper to remove identical code blocks
[ https://issues.apache.org/jira/browse/SPARK-56575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xingbo Jiang resolved SPARK-56575.
----------------------------------
Resolution: Fixed
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org