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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.0, 3.0.0-alpha1
    • 2.8.0, 3.0.0-alpha1
    • namenode
    • None
    • 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.branch-2.patch
          4 kB
          Daryn Sharp
        2. HDFS-9566.patch
          4 kB
          Daryn Sharp

        Activity

          People

            daryn Daryn Sharp
            daryn Daryn Sharp
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: