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

Speed up BlockPlacementPolicyRackFaultTolerant#verifyBlockPlacement

    XMLWordPrintableJSON

Details

    Description

      Set<String> racks = new TreeSet<>();
      for (DatanodeInfo dn : locs) {
        racks.add(dn.getNetworkLocation());
      }
      return new BlockPlacementStatusDefault(racks.size(), numberOfReplicas,
          clusterMap.getNumOfRacks());

      Here, HashMap should be used instead of TreeSet.

      Attachments

        Issue Links

          Activity

            People

              aajisaka Akira Ajisaka
              aajisaka Akira Ajisaka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h