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

Remove Shuffle Method From DFSUtil

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Flags:
      Patch

      Description

      DFSUtil contains a "shuffle" routine that shuffles arrays. With a little wrapping, Java Collections class can shuffle. This code is superfluous and undocumented. The method returns an array, though it does not specify if it returns the same array or a new, copy, array of shuffled items.

      It is only used in one place, so it is better to simply remove and substitute this implementation with the java Collections implementation.

        Attachments

        1. Shuffle.HDFS-9596.patch
          5 kB
          David Mollitor
        2. HDFS-9596.2.patch
          5 kB
          David Mollitor
        3. HDFS-9596.3.patch
          4 kB
          David Mollitor
        4. HDFS-9596.4.patch
          4 kB
          David Mollitor
        5. HDFS-9596.5.patch
          4 kB
          David Mollitor
        6. HDFS-9596.6.patch
          4 kB
          David Mollitor
        7. HDFS-9596.7.patch
          4 kB
          David Mollitor

          Activity

            People

            • Assignee:
              belugabehr David Mollitor
              Reporter:
              belugabehr David Mollitor
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: