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

NPE in HttpServer during NameNode startup

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.10.0, 2.7.8, 3.3.0
    • Fix Version/s: 3.2.2, 2.10.1, 3.3.1, 3.4.0
    • Component/s: namenode
    • Labels:
      None

      Description

      When NameNode starts it first starts HttpServer, then starts loading fsImage and edits. While loading the namesystem field in NameNode is null. I saw that a StandbyNode sends a checkpoint request, which fails with NPE because NNStorage is not instantiated yet.
      We should check the NameNode startup status before accepting checkpoint requests.

        Attachments

        1. HDFS-15290.001.patch
          6 kB
          Simbarashe Dzinamarira
        2. HDFS-15290.002.patch
          4 kB
          Simbarashe Dzinamarira
        3. HDFS-15290.003.patch
          6 kB
          Simbarashe Dzinamarira
        4. HDFS-15290-branch-2.10.003.patch
          7 kB
          Konstantin Shvachko

          Activity

            People

            • Assignee:
              simbadzina Simbarashe Dzinamarira
              Reporter:
              shv Konstantin Shvachko
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: