[
https://issues.apache.org/jira/browse/SPARK-34224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17272039#comment-17272039
]
Apache Spark commented on SPARK-34224:
--------------------------------------
User 'LuciferYang' has created a pull request for this issue:
https://github.com/apache/spark/pull/31344
> Ensure all resource opened by `Source.fromXXX` method are closed
> ----------------------------------------------------------------
>
> Key: SPARK-34224
> URL: https://issues.apache.org/jira/browse/SPARK-34224
> Project: Spark
> Issue Type: Bug
> Components: Tests
> Affects Versions: 3.2.0
> Reporter: Yang Jie
> Priority: Minor
>
> Using a function like .mkString or .getLines directly on a Source opened by
> fromFile, fromURL, fromURI will leak the underlying file handle, we should
> ensure these resource closed.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]