Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-5124

A few optimizations to FsNamesystem#RecentInvalidateSets

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0, 0.21.0
    • None
    • None
    • Reviewed

    Description

      This jira proposes a few optimization to FsNamesystem#RecentInvalidateSets:
      1. when removing all replicas of a block, it does not traverse all nodes in the map. Instead it traverse only the nodes that the block is located.
      2. When dispatching blocks to datanodes in ReplicationMonitor. It randomly chooses a predefined number of datanodes and dispatches blocks to those datanodes. This strategy provides fairness to all datanodes. The current strategy always starts from the first datanode.

      Attachments

        1. optimizeInvalidate.patch
          4 kB
          Hairong Kuang
        2. optimizeInvalidate1.patch
          8 kB
          Hairong Kuang
        3. optimizeInvalidate2.patch
          7 kB
          Hairong Kuang
        4. optimizeInvalidate2-0.20.2.patch
          5 kB
          Jeff Whiting
        5. HADOOP-5124-branch-0.20-security.patch
          8 kB
          Jitendra Nath Pandey

        Issue Links

          Activity

            People

              hairong Hairong Kuang
              hairong Hairong Kuang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: