hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-7944) Minor cleanup of BlockPoolManager#getAllNamenodeThreads
Date Tue, 17 Mar 2015 18:55:39 GMT

     [ https://issues.apache.org/jira/browse/HDFS-7944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Arpit Agarwal updated HDFS-7944:
--------------------------------
    Attachment: HDFS-7944.01.patch

> Minor cleanup of BlockPoolManager#getAllNamenodeThreads
> -------------------------------------------------------
>
>                 Key: HDFS-7944
>                 URL: https://issues.apache.org/jira/browse/HDFS-7944
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 2.6.0
>            Reporter: Arpit Agarwal
>            Assignee: Arpit Agarwal
>            Priority: Minor
>         Attachments: HDFS-7944.01.patch
>
>
> {{BlockPoolManager#getAllNamenodeThreads}} can avoid unnecessary list to array conversion
and vice versa by returning an unmodifiable list.
> 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)

Mime
View raw message