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

SimulatedDataSet should not create DatanodeRegistration with namenode layout version and type

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.0
    • Component/s: datanode, test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In DataNode.createBPRegistration(..), it creates storageInfo with nsInfo for the case of SimulatedDataSet. Then, the layout version and the node type will be respectively set to namenode's layout version and NodeType.NAME_NODE.

      //DataNode.createBPRegistration(..)
          if (storageInfo == null) {
            // it's null in the case of SimulatedDataSet
            storageInfo = new StorageInfo(nsInfo);
          }
      

        Attachments

        1. h6076_20140307.patch
          3 kB
          Tsz Wo Nicholas Sze

          Activity

            People

            • Assignee:
              szetszwo Tsz Wo Nicholas Sze
              Reporter:
              szetszwo Tsz Wo Nicholas Sze
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: