hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Huang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11912) Add a snapshot unit test with randomized file IO operations
Date Fri, 02 Jun 2017 22:34:05 GMT

    [ https://issues.apache.org/jira/browse/HDFS-11912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16035547#comment-16035547
] 

George Huang commented on HDFS-11912:
-------------------------------------

4.
    // Set
    Random RANDOM = new Random();
    long seed = RANDOM.nextLong();
    GENERATOR = new Random(seed);
Any specific reason why a simple seed like System.currentTimeMillis() will not be useful here
? Here seed is generated from random, which is inturn is not seeded. Also, RANDOM need not
be all caps.

=> Removed 'RANDOM', using System.currentTimeMillis() instead. Thanks!

> Add a snapshot unit test with randomized file IO operations
> -----------------------------------------------------------
>
>                 Key: HDFS-11912
>                 URL: https://issues.apache.org/jira/browse/HDFS-11912
>             Project: Hadoop HDFS
>          Issue Type: Test
>          Components: hdfs
>            Reporter: George Huang
>            Priority: Minor
>         Attachments: HDFS-11912.001.patch
>
>
> Adding a snapshot unit test with randomized file IO operations.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message