You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Arpit Agarwal (JIRA)" <ji...@apache.org> on 2015/03/17 19:53:38 UTC
[jira] [Created] (HADOOP-11725) Minor cleanup of
BlockPoolManager#getAllNamenodeThreads
Arpit Agarwal created HADOOP-11725:
--------------------------------------
Summary: Minor cleanup of BlockPoolManager#getAllNamenodeThreads
Key: HADOOP-11725
URL: https://issues.apache.org/jira/browse/HADOOP-11725
Project: Hadoop Common
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)