[
https://issues.apache.org/jira/browse/HDFS-17329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
farmmamba updated HDFS-17329:
-----------------------------
Description:
Currently, nodesToProcess uses LinkedList to store elements. But in
computePlan method, we use code like below:
{code:java}
nodesToProcess.get(x); {code}
So, we should better change LinkedList to ArrayList here.
> DiskBalancerCluster#nodesToProcess should better use ArrayList
> --------------------------------------------------------------
>
> Key: HDFS-17329
> URL: https://issues.apache.org/jira/browse/HDFS-17329
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: diskbalancer
> Affects Versions: 3.3.6
> Reporter: farmmamba
> Assignee: farmmamba
> Priority: Trivial
>
> Currently, nodesToProcess uses LinkedList to store elements. But in
> computePlan method, we use code like below:
> {code:java}
> nodesToProcess.get(x); {code}
> So, we should better change LinkedList to ArrayList here.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]