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 2022/02/24 16:16:00 UTC

[jira] [Updated] (SPARK-38273) decodeUnsafeRows's iterators should close underlying input streams

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

Dongjoon Hyun updated SPARK-38273:
----------------------------------
    Summary: decodeUnsafeRows's iterators should close underlying input streams  (was: decodeUnsafeRows's iterators should close underl… …ying input streams)

> decodeUnsafeRows's iterators should close underlying input streams
> ------------------------------------------------------------------
>
>                 Key: SPARK-38273
>                 URL: https://issues.apache.org/jira/browse/SPARK-38273
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.2.0, 3.2.1
>            Reporter: Kevin Sewell
>            Assignee: Kevin Sewell
>            Priority: Major
>             Fix For: 3.3.0, 3.2.2
>
>
> SPARK-34647 replaced the ZstdInputStream with ZstdInputStreamNoFinalizer. This meant that all usages of `CompressionCodec.compressedInputStream` would need to manually close the stream as this would no longer be handled by GC finaliser mechanism.
> In SparkPlan, the result of `CompressionCodec.compressedInputStream` is wrapped in an Iterator which never calls close. This implementation needs to make use of NextIterator which allows for the closing of underlying streams.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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