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

Fix SSLFactory truststore reloader thread leak in URLConnectionFactory

    XMLWordPrintableJSON

Details

    Description

      This is reported by yoshiata. It is a similar issue as HADOOP-11368 and YARN-5309 in URLConnectionFactory.

      SSLFactory in newSslConnConfigurator and subsequently creates the ReloadingX509TrustManager instance which in turn starts a trust store reloader thread.
      However, the SSLFactory is never destroyed and hence the trust store reloader threads are not killed.

      We observed many leaked threads when we used swebhdfs via NiFi cluster.

      "Truststore reloader thread" Id=221 TIMED_WAITING  on null
              at java.lang.Thread.sleep(Native Method)
              at org.apache.hadoop.security.ssl.ReloadingX509TrustManager.run(ReloadingX509TrustManager.java:189)
              at java.lang.Thread.run(Thread.java:748)
      

      Attachments

        1. HDFS-14037.2.patch
          12 kB
          Takanobu Asanuma
        2. HDFS-14037.1.patch
          11 kB
          Takanobu Asanuma

        Activity

          People

            tasanuma Takanobu Asanuma
            tasanuma Takanobu Asanuma
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: