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

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.4.0
    • datanode, test
    • None
    • 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 Sze

        Activity

          People

            szetszwo Tsz-wo Sze
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: