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

Arpit Agarwal updated HDFS-6810:
--------------------------------

          Resolution: Fixed
       Fix Version/s: 2.6.0
                      3.0.0
    Target Version/s: 2.6.0
        Hadoop Flags: Reviewed
              Status: Resolved  (was: Patch Available)

Nice catch [~tedyu].

+1 for the patch. Thanks for fixing this Nicholas. I committed it to trunk and 
branch-2.

> StorageReport array is initialized with wrong size in 
> DatanodeDescriptor#getStorageReports
> ------------------------------------------------------------------------------------------
>
>                 Key: HDFS-6810
>                 URL: https://issues.apache.org/jira/browse/HDFS-6810
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>            Reporter: Ted Yu
>            Assignee: Tsz Wo Nicholas Sze
>            Priority: Minor
>             Fix For: 3.0.0, 2.6.0
>
>         Attachments: h6810_20140803.patch
>
>
> Here is related code:
> {code}
>   public StorageReport[] getStorageReports() {
>     final StorageReport[] reports = new StorageReport[storageMap.size()];
> {code}
> Other methods use the following construct:
> {code}
>     synchronized (storageMap) {
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to