hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "BELUGA BEHR (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-9596) Remove "Shuffle" Method From DFSUtil
Date Wed, 23 Dec 2015 18:58:46 GMT

     [ https://issues.apache.org/jira/browse/HDFS-9596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

BELUGA BEHR updated HDFS-9596:
------------------------------
    Status: Patch Available  (was: Open)

> Remove "Shuffle" Method From DFSUtil
> ------------------------------------
>
>                 Key: HDFS-9596
>                 URL: https://issues.apache.org/jira/browse/HDFS-9596
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 2.7.1
>            Reporter: BELUGA BEHR
>            Priority: Trivial
>         Attachments: Shuffle.HDFS-9596.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message