Skip to content

[SPARK-54533][UI] Set metric ExecutorSource.METRIC_RESULT_SIZE with correct value#53243

Closed
jiwen624 wants to merge 1 commit intoapache:masterfrom
jiwen624:executor-source-result-size
Closed

[SPARK-54533][UI] Set metric ExecutorSource.METRIC_RESULT_SIZE with correct value#53243
jiwen624 wants to merge 1 commit intoapache:masterfrom
jiwen624:executor-source-result-size

Conversation

@jiwen624
Copy link
Contributor

@jiwen624 jiwen624 commented Nov 27, 2025

What changes were proposed in this pull request?

Set the metric executorSource.METRIC_RESULT_SIZE after the result size is populated.

Why are the changes needed?

Currently the metric executorSource.METRIC_RESULT_SIZE is set to the value of task.metrics.resultSize which is always 0 in that line.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Manually tested on local Spark. See the Jira attachments for metrics reported before and after fix.

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the CORE label Nov 27, 2025
@jiwen624 jiwen624 changed the title [WIP][SPARK-54533][UI] Set metric executorSource.METRIC_RESULT_SIZE with proper value [SPARK-54533][UI] Set metric ExecutorSource.METRIC_RESULT_SIZE with proper value Nov 29, 2025
@jiwen624 jiwen624 marked this pull request as ready for review November 29, 2025 00:24
@jiwen624
Copy link
Contributor Author

@cloud-fan @dongjoon-hyun could you take a look at this bug fix when you get a chance? Thanks

@jiwen624 jiwen624 changed the title [SPARK-54533][UI] Set metric ExecutorSource.METRIC_RESULT_SIZE with proper value [SPARK-54533][UI] Set metric ExecutorSource.METRIC_RESULT_SIZE with correct value Nov 29, 2025
@cloud-fan
Copy link
Contributor

is there a screenshot to demonstrate this "always 0" bug?

@jiwen624
Copy link
Contributor Author

jiwen624 commented Dec 2, 2025

@cloud-fan Here is the screenshot (yellow line - before fix, green line - after fix):
image

I also attached another example of raw metrics reported before/after in the Jira (note the appId in the attached files are different from the screenshot above as they are from different runs)

@cloud-fan
Copy link
Contributor

thanks, merging to master/4.1!

@cloud-fan cloud-fan closed this in 769ccc6 Dec 2, 2025
cloud-fan pushed a commit that referenced this pull request Dec 2, 2025
…orrect value

### What changes were proposed in this pull request?
Set the metric executorSource.METRIC_RESULT_SIZE after the result size is populated.

### Why are the changes needed?
Currently the metric executorSource.METRIC_RESULT_SIZE is set to the value of `task.metrics.resultSize` which is always 0 in that line.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Manually tested on local Spark. See the Jira attachments for metrics reported before and after fix.

### Was this patch authored or co-authored using generative AI tooling?
No

Closes #53243 from jiwen624/executor-source-result-size.

Authored-by: Eric Yang <jiwen624@gmail.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit 769ccc6)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
@dongjoon-hyun
Copy link
Member

Thank you, @jiwen624 and @cloud-fan .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants