You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/01/07 07:58:00 UTC
[jira] [Commented] (HDFS-17329) DiskBalancerCluster#nodesToProcess should better use ArrayList
[ https://issues.apache.org/jira/browse/HDFS-17329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17803915#comment-17803915 ]
ASF GitHub Bot commented on HDFS-17329:
---------------------------------------
hfutatzhanghb opened a new pull request, #6423:
URL: https://github.com/apache/hadoop/pull/6423
### Description of PR
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.
> 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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org