Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9566

Remove expensive 'BlocksMap#getStorages(Block b, final DatanodeStorage.State state)' method

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.0, 3.0.0-alpha1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: namenode
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      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.

        Attachments

        1. HDFS-9566.patch
          4 kB
          Daryn Sharp
        2. HDFS-9566.branch-2.patch
          4 kB
          Daryn Sharp

          Activity

            People

            • Assignee:
              daryn Daryn Sharp
              Reporter:
              daryn Daryn Sharp
            • Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: