Hadoop Common
  1. Hadoop Common
  2. HADOOP-5163

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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.

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development