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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        104d 22h 9m 1 Tsz Wo Nicholas Sze 19/May/09 22:54
        Resolved Resolved Closed Closed
        461d 21h 41m 1 Tom White 24/Aug/10 20:35
        Tom White made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Owen O'Malley made changes -
        Component/s dfs [ 12310710 ]
        Tsz Wo Nicholas Sze made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Duplicate [ 3 ]
        Hide
        Tsz Wo Nicholas Sze added a comment -

        This duplicates HADOOP-5595.

        Show
        Tsz Wo Nicholas Sze added a comment - This duplicates HADOOP-5595 .
        Jakob Homan made changes -
        Field Original Value New Value
        Assignee Jakob Homan [ jghoman ]
        Hairong Kuang created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development