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

Brandon Li updated HDFS-5107:
-----------------------------

    Fix Version/s: 3.0.0
    
> Fix array copy error in Readdir and Readdirplus responses
> ---------------------------------------------------------
>
>                 Key: HDFS-5107
>                 URL: https://issues.apache.org/jira/browse/HDFS-5107
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: nfs
>    Affects Versions: 3.0.0
>            Reporter: Brandon Li
>            Assignee: Brandon Li
>             Fix For: 3.0.0
>
>         Attachments: HDFS-5107.patch.2, HDFS-5107.patch.3
>
>
> System.arraycopy(this.entries, 0, entries, 0, entries.length);
> it should be 
> System.arraycopy(entries, 0, this.entries, 0, entries.length); 
> Findbugs gives EI2 warning if directly assign entries to this.entries:
> EI2: May expose internal representation by incorporating reference to mutable 
> object (EI_EXPOSE_REP2) 
> This caused NFS to fail to return directory content. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to