[
https://issues.apache.org/jira/browse/SPARK-41683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
wy updated SPARK-41683:
-----------------------
Attachment: image-2022-12-22-16-06-45-367.png
> Spark UI: In jobs API, numActiveStages can be negative in some cases
> --------------------------------------------------------------------
>
> Key: SPARK-41683
> URL: https://issues.apache.org/jira/browse/SPARK-41683
> Project: Spark
> Issue Type: Bug
> Components: Spark Core, Web UI
> Affects Versions: 3.3.1
> Reporter: wy
> Priority: Minor
> Attachments: image-2022-12-22-16-06-21-180.png,
> image-2022-12-22-16-06-45-367.png
>
>
> In API /api/v1/applications/.../jobs, for each job, there's one property
> called numActiveStages, telling how many active stages of the job.
> It is calculated by the following code. When stage is submitted,
> numActiveStages += 1. When job is ended, for each pending stage,
> numActiveStages -= 1.
> !image-2022-12-22-15-58-30-833.png!
> !image-2022-12-22-15-56-05-110.png!
>
> However, there's possibility that there's no stage submitted event for some
> skipped stages. In this case, when job ends, numActiveStages may be minus.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]