Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7718

Store KeyProvider in ClientContext to avoid leaking key provider threads when using FileContext

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently, the FileContext class used by clients such as (for eg. YARNRunner) creates a new AbstractFilesystem object on initialization.. which creates a new DFSClient object.. which in turn creates a KeyProvider object.. If Encryption is turned on, and https is turned on, the keyprovider implementation (the KMSClientProvider) will create a ReloadingX509TrustManager thread per instance... which are never killed and can lead to a thread leak

        Attachments

        1. HDFS-7718.1.patch
          20 kB
          Arun Suresh
        2. HDFS-7718.2.patch
          22 kB
          Arun Suresh
        3. HDFS-7718.3.patch
          22 kB
          Arun Suresh
        4. HDFS-7718.3.patch
          22 kB
          Arun Suresh

          Issue Links

            Activity

              People

              • Assignee:
                asuresh Arun Suresh
                Reporter:
                asuresh Arun Suresh
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: