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

DelegationTokenSecretManager lifecycle is inconsistent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.22.0
    • None
    • None
    • None

    Description

      FSNamesystem.dtSecretManager is initialized in FSNamesystem.initialize(), but not started until activate(). In FSN.stop() it calls dtSecretManager.stopThreads so long as it's non-null, but doesn't check that the threads have started (ie activate() may never have been called). This causes an NPE in stopThreads()

      To fix this, stopThreads should check tokenRemoverThread against null before interrupting it.

      Attachments

        1. hadoop-6554.txt
          1 kB
          Todd Lipcon
        2. hadoop-6554.txt
          1 kB
          Todd Lipcon
        3. hdfs-967.txt
          0.7 kB
          Todd Lipcon

        Issue Links

          Activity

            People

              tlipcon Todd Lipcon
              tlipcon Todd Lipcon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: