HDFS-5318 added a BlocksMap#getStorages(Block, State) which is based on iterables and predicates. The method is very expensive compared to a simple comparison/continue.
FAILURE: Integrated in Hadoop-trunk-Commit #9213 (See https://builds.apache.org/job/Hadoop-trunk-Commit/9213/)
HDFS-9566. Remove expensive 'BlocksMap#getStorages(Block b, final (vinayakumarb: rev e418bd1fb0568ce7ae22f588fea2dd9c95567383)
Committed to trunk, branch-2 and branch-2.8
Thanks Daryn Sharp
Thanks Arpit Agarwal and Mingliang Liu for reviews.
Just removes it.