Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-34224

Ensure all resource opened by `Source.fromXXX` method are closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.2.0
    • 3.0.2, 3.1.1
    • Tests
    • None

    Description

      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.

      Attachments

        Activity

          People

            LuciferYang Yang Jie
            LuciferYang Yang Jie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: