Description
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.
Attachments
Attachments
Issue Links
- is related to
-
HBASE-12998 Compilation with Hdfs-2.7.0-SNAPSHOT is broken after HDFS-7647
- Closed
-
HDFS-7756 Restore method signature for LocatedBlock#getLocations()
- Closed
-
HDFS-7761 cleanup unnecssary code logic in LocatedBlock
- Closed