Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13987

RBF: Review of RandomResolver Class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.2.0
    • 3.3.0
    • federation
    • None
    • Reviewed

    Description

      • Use ThreadLocalRandom
      • Do not create a list, and copy, to pick a random index
      • An early-return in the method means that the 'ERROR' logging is skipped in some cases

      Attachments

        1. HDFS-13987.1.patch
          2 kB
          David Mollitor

        Activity

          People

            belugabehr David Mollitor
            belugabehr David Mollitor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: