hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-11725) Minor cleanup of BlockPoolManager#getAllNamenodeThreads
Date Tue, 17 Mar 2015 18:53:38 GMT
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

View raw message