XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-alpha4
    • namenode
    • None
    • Reviewed

    Description

      As discussed in HDFS-11535, this JIRA adds a new function combining both the new and the old chooseRandom methods for better performance.

      More specifically, when choosing a random node with storage type requirement, the combined method first tries the old method of blindly picking a random node. If this node satisfies, it is returned. Otherwise, the new chooseRandom is called, which guarantees to find a eligible node in one call (if there is one at all).

      Attachments

        1. HDFS-11577.003.patch
          8 kB
          Yiqun Lin
        2. HDFS-11577.002.patch
          8 kB
          Chen Liang
        3. HDFS-11577.001.patch
          8 kB
          Chen Liang

        Activity

          People

            vagarychen Chen Liang
            vagarychen Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: