[
https://issues.apache.org/jira/browse/HDFS-5107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13743796#comment-13743796
]
Hudson commented on HDFS-5107:
------------------------------
FAILURE: Integrated in Hadoop-Hdfs-trunk #1496 (See
[https://builds.apache.org/job/Hadoop-Hdfs-trunk/1496/])
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