Lukas Rupprecht created SPARK-51185:
---------------------------------------
Summary: 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: Bug
Components: Spark Core
Affects Versions: 4.0.0
Reporter: Lukas Rupprecht
Fix For: 4.0.0
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: [email protected]
For additional commands, e-mail: [email protected]