hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5107) Fix array copy error in Readdir and Readdirplus responses
Date Mon, 19 Aug 2013 10:57:51 GMT

    [ https://issues.apache.org/jira/browse/HDFS-5107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13743718#comment-13743718
] 

Hudson commented on HDFS-5107:
------------------------------

SUCCESS: Integrated in Hadoop-Yarn-trunk #306 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/306/])
HDFS-5107 Fix array copy error in Readdir and Readdirplus responses. Contributed by Brandon
Li (brandonli: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1515166)
* /hadoop/common/trunk/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/nfs/nfs3/response/READDIR3Response.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/nfs/nfs3/response/READDIRPLUS3Response.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

                
> 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, 2.3.0, 2.1.1-beta
>
>         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

Mime
View raw message