[
https://issues.apache.org/jira/browse/HDFS-7944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arpit Agarwal moved HADOOP-11725 to HDFS-7944:
----------------------------------------------
Target Version/s: 2.8.0 (was: 2.8.0)
Affects Version/s: (was: 2.6.0)
2.6.0
Key: HDFS-7944 (was: HADOOP-11725)
Project: Hadoop HDFS (was: Hadoop Common)
> Minor cleanup of BlockPoolManager#getAllNamenodeThreads
> -------------------------------------------------------
>
> Key: HDFS-7944
> URL: https://issues.apache.org/jira/browse/HDFS-7944
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.6.0
> Reporter: Arpit Agarwal
> Assignee: Arpit Agarwal
> Priority: Minor
>
> {{BlockPoolManager#getAllNamenodeThreads}} can avoid unnecessary list to
> array conversion and vice versa by returning an UnmodifiableList. Since NN
> addition/removal is relatively rare we can just use a CopyOnWriteArrayList
> for concurrency.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)