You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2025/12/04 16:23:00 UTC
[jira] [Updated] (SPARK-54533) Metric executorSource.METRIC_RESULT_SIZE is updated with uninitialized value
[ https://issues.apache.org/jira/browse/SPARK-54533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun updated SPARK-54533:
----------------------------------
Parent: SPARK-51166
Issue Type: Sub-task (was: Bug)
> Metric executorSource.METRIC_RESULT_SIZE is updated with uninitialized value
> ----------------------------------------------------------------------------
>
> Key: SPARK-54533
> URL: https://issues.apache.org/jira/browse/SPARK-54533
> Project: Spark
> Issue Type: Sub-task
> Components: UI
> Affects Versions: 4.0.0, 4.2.0
> Reporter: Eric Yang
> Assignee: Eric Yang
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.1.0
>
> Attachments: resultSizeMetric_afterFix.txt, resultSizeMetric_beforeFix.txt
>
>
> In TaskRunner.run, the metric `executorSource.METRIC_RESULT_SIZE` is updated with the value of `task.metrics.resultSize`, which hasn't been updated itself.
> {code:java}
> executorSource.METRIC_RESULT_SIZE.inc(task.metrics.resultSize) {code}
> This makes this metric has zero value all the time.
> It should be set to the `resultSize` which is populated later:
> {code:java}
> val resultSize = serializedDirectResult.size {code}
--
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