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

BlockPlacementPolicyDefault does not consider decommissioning racks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 0.23.7, 2.1.0-beta
    • None
    • namenode

    Description

      getMaxNodesPerRack() calculates the max replicas/rack like this:

      int maxNodesPerRack = (totalNumOfReplicas-1)/clusterMap.getNumOfRacks()+2;
      

      Since this does not consider the racks that are being decommissioned and the decommissioning state is only checked later in isGoodTarget(), certain blocks are not replicated even when there are many racks and nodes.

      Attachments

        1. HDFS-4861-v2.patch
          16 kB
          Rushabh Shah
        2. HDFS-4861.patch
          15 kB
          Rushabh Shah

        Issue Links

          Activity

            People

              shahrs87 Rushabh Shah
              kihwal Kihwal Lee
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: