Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15234

Throw meaningful message on null when initializing KMSWebApp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0
    • kms
    • None

    Description

      During KMS startup, if the keyProvider is null, it will NPE inside KeyProviderExtension.

      java.lang.NullPointerException
      	at org.apache.hadoop.crypto.key.KeyProviderExtension.<init>(KeyProviderExtension.java:43)
      	at org.apache.hadoop.crypto.key.CachingKeyProvider.<init>(CachingKeyProvider.java:93)
      	at org.apache.hadoop.crypto.key.kms.server.KMSWebApp.contextInitialized(KMSWebApp.java:170)
      

      We're investigating the exact scenario that could lead to this, but the NPE and log around it can be improved.

      Attachments

        1. HADOOP-15234.005.patch
          1 kB
          fang zhenyi
        2. HADOOP-15234.004.patch
          1 kB
          fang zhenyi
        3. HADOOP-15234.003.patch
          1 kB
          fang zhenyi
        4. HADOOP-15234.002.patch
          1 kB
          fang zhenyi
        5. HADOOP-15234.001.patch
          4 kB
          fang zhenyi

        Activity

          People

            zhenyi fang zhenyi
            xiaochen Xiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: