[ https://issues.apache.org/jira/browse/HDFS-9032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yi Liu updated HDFS-9032: ------------------------- Attachment: HDFS-9032.001.patch > Small improvement for DatanodeManager#sortLocatedBlocks > ------------------------------------------------------- > > Key: HDFS-9032 > URL: https://issues.apache.org/jira/browse/HDFS-9032 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Yi Liu > Assignee: Yi Liu > Priority: Minor > Attachments: HDFS-9032.001.patch > > > This is a minor improvement: > In sortLocatedBlocks, (in most cases) if locations of located block don't > contain decommissioned/stale datanode, no need to call Arrays.sort. > Also we can make the comparator as the class variable. -- This message was sent by Atlassian JIRA (v6.3.4#6332)