Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9806 Allow HDFS block replicas to be provided by an external storage system
  3. HDFS-12809

[READ] Fix the randomized selection of locations in {{ProvidedBlocksBuilder}}.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0
    • None
    • None
    • Reviewed

    Description

      Calling getBlockLocations on files that have a PROVIDED replica, results in the datanode locations being selected at random. Currently, this randomization uses the datanode uuids to pick a node at random (ProvidedDescriptor#choose, ProvidedDescriptor#chooseRandom). Depending on the distribution of the datanode UUIDs, this can lead to large number of iterations (which may not terminate) before a location is chosen. This JIRA aims to replace this with a more efficient randomization strategy.

      Attachments

        1. HDFS-12809-HDFS-9806.001.patch
          6 kB
          Virajith Jalaparti
        2. HDFS-12809-HDFS-9806.002.patch
          10 kB
          Virajith Jalaparti

        Issue Links

          Activity

            People

              virajith Virajith Jalaparti
              virajith Virajith Jalaparti
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: