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

DelegationTokenSecretManager lifecycle is inconsistent

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.22.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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

            • Assignee:
              tlipcon Todd Lipcon
              Reporter:
              tlipcon Todd Lipcon

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment