[ https://issues.apache.org/jira/browse/HDFS-4797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13705698#comment-13705698 ]
Hudson commented on HDFS-4797: ------------------------------ Integrated in Hadoop-Yarn-trunk #267 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/267/]) updating CHANGES.txt after committing MAPREDUCE-5333,HADOOP-9661,HADOOP-9355,HADOOP-9673,HADOOP-9414,HADOOP-9416,HDFS-4797,YARN-866,YARN-736,YARN-883 to 2.1-beta branch (Revision 1502075) Result = SUCCESS tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1502075 Files : * /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt * /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt * /hadoop/common/trunk/hadoop-yarn-project/CHANGES.txt > BlockScanInfo does not override equals(..) and hashCode() consistently > ---------------------------------------------------------------------- > > Key: HDFS-4797 > URL: https://issues.apache.org/jira/browse/HDFS-4797 > Project: Hadoop HDFS > Issue Type: Bug > Components: datanode > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Tsz Wo (Nicholas), SZE > Priority: Minor > Fix For: 2.1.0-beta > > Attachments: h4797_20130513b.patch, h4797_20130513.patch > > > In the code below, equals(..) compares lastScanTime but hashCode() is > computed using block ID. Therefore, it could have two BlockScanInfo objects > which are equal but have two different hash codes. > {code} > //BlockScanInfo > @Override > public int hashCode() { > return block.hashCode(); > } > > @Override > public boolean equals(Object other) { > return other instanceof BlockScanInfo && > compareTo((BlockScanInfo)other) == 0; > } > {code} -- 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