[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to