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

DiskBalancerCluster#nodesToProcess should better use ArrayList

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 3.3.6
    • None
    • diskbalancer

    Description

      Currently,  nodesToProcess uses LinkedList to store elements.  But in computePlan method, we use code like below:

      nodesToProcess.get(x); 

      So, we should better change LinkedList  to ArrayList here.

      Attachments

        Issue Links

          Activity

            People

              zhanghaobo farmmamba
              zhanghaobo farmmamba
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: