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

AMCredentialRenewer can leak FS clients

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Not A Problem
    • 2.4.0
    • None
    • Spark Core, YARN
    • None

    Description

      AMCredentialRenewer's scheduled writeNewCredentialsToHDFS operation creates a new FS connector each time, so as to access the store with refreshed credentials

      but it doesn't close it after, so any resources used by the client are kept around. This is more expensive with the cloud store connectors which create thread pools.

      It should call remoteFs.close() at the end of its work.

      Attachments

        Activity

          People

            Unassigned Unassigned
            stevel@apache.org Steve Loughran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: