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

FSNamesystem#getRandomDatanode() should not use Replicator to choose a random datanode

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 0.21.0
    • Component/s: None
    • Labels:
      None

      Description

      Below is the code:
      public DatanodeDescriptor getRandomDatanode()

      { return replicator.chooseTarget(1, null, null, 0)[0]; }

      Using Replicator to choose a random datanode is an overkill. It is very expensive and unnecessary.

        Attachments

          Activity

            People

            • Assignee:
              jghoman Jakob Homan
              Reporter:
              hairong Hairong Kuang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: