[ https://issues.apache.org/jira/browse/HDFS-7647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14312771#comment-14312771 ]
Milan Desai commented on HDFS-7647: ----------------------------------- Hi [~arpitagarwal], I added those in because Findbugs was complaining that a subclass (DatanodeInfoWithStorage) didn't override equals() and hashCode() and recommending that I call the super and add an explanatory comment if I didn't want to override. Revision 5 is the same exact as Revision 7 but without the equals and hashCode overridden, so we can commit that one, but there will be two additional FindBugs warnings. > DatanodeManager.sortLocatedBlocks() sorts DatanodeInfos but not StorageIDs > -------------------------------------------------------------------------- > > Key: HDFS-7647 > URL: https://issues.apache.org/jira/browse/HDFS-7647 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 2.6.0 > Reporter: Milan Desai > Assignee: Milan Desai > Attachments: HDFS-7647-2.patch, HDFS-7647-3.patch, HDFS-7647-4.patch, > HDFS-7647-5.patch, HDFS-7647-6.patch, HDFS-7647-7.patch, HDFS-7647.patch > > > DatanodeManager.sortLocatedBlocks() sorts the array of DatanodeInfos inside > each LocatedBlock, but does not touch the array of StorageIDs and > StorageTypes. As a result, the DatanodeInfos and StorageIDs/StorageTypes are > mismatched. The method is called by FSNamesystem.getBlockLocations(), so the > client will not know which StorageID/Type corresponds to which DatanodeInfo. -- This message was sent by Atlassian JIRA (v6.3.4#6332)