Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5535 Umbrella jira for improved HDFS rolling upgrades
  3. HDFS-6032

-rollingUpgrade query hits NPE after the NN restarts

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: HDFS-5535 (Rolling upgrades)
    • Fix Version/s: None
    • Component/s: datanode, ha, hdfs-client, namenode
    • Labels:
      None

      Description

      NamenodeRpcServer#rollingUpgrade throws an NPE during query after the NN restarts. It complains that the BlockPoolId in RollingUpgradeInfo equals to null.

      Further investigation shows that the BlockPoolId remains uninitialized when FSImage#loadFSImage constructs the RollingUpgradeInfo object, leading to the NPE.

        Attachments

        1. HDFS-6032.000.patch
          3 kB
          Haohui Mai

          Activity

            People

            • Assignee:
              wheat9 Haohui Mai
              Reporter:
              wheat9 Haohui Mai
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: