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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.0.2, 3.1.1
    • Component/s: Tests
    • Labels:
      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

            • Assignee:
              LuciferYang Yang Jie
              Reporter:
              LuciferYang Yang Jie
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: