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

ReplicationTargetChooser has incorrect block placement comments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.20.1
    • 1.1.0
    • namenode
    • None

    Description

      /** The class is responsible for choosing the desired number of targets
       * for placing block replicas.
       * The replica placement strategy is that if the writer is on a datanode,
       * the 1st replica is placed on the local machine, 
       * otherwise a random datanode. The 2nd replica is placed on a datanode
       * that is on a different rack. The 3rd replica is placed on a datanode
       * which is on the same rack as the **first replca**.
       */
      

      That should read "second replica". The test cases confirm that this is the behavior, as well as the docs.

      Attachments

        1. HDFS-2547.patch
          1 kB
          Harsh J
        2. HDFS-2547.patch
          0.8 kB
          Harsh J

        Activity

          People

            qwertymaniac Harsh J
            qwertymaniac Harsh J
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: