[ 
https://issues.apache.org/jira/browse/SPARK-51185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dongjoon Hyun updated SPARK-51185:
----------------------------------
    Target Version/s:   (was: 4.0.0)

> Revert simplifications to PartitionedFileUtil API due to increased risk of OOM
> ------------------------------------------------------------------------------
>
>                 Key: SPARK-51185
>                 URL: https://issues.apache.org/jira/browse/SPARK-51185
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Spark Core
>    Affects Versions: 4.0.0
>            Reporter: Lukas Rupprecht
>            Priority: Major
>              Labels: pull-request-available
>
> A prior ticket (see https://issues.apache.org/jira/browse/SPARK-44081) 
> implemented a simplification to the PartitionedFileUtils API that removed 
> redundant `path` arguments, which can be obtained directly from the 
> `FileStatusWithMetadata` object. To avoid repeatedly having to compute the 
> path, this change changed `FileStatusWithMetadata.getPath` from a def to a 
> lazy val. However, this increases the memory requirements as the path now 
> needs to be kept in memory throughout the lifetime of a 
> `FileStatusWithMetadata` object. This can lead to OOMs so we should revert 
> this change and make `getPath` to be a `def`.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to