You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Andrew Wang (JIRA)" <ji...@apache.org> on 2014/09/19 00:56:35 UTC

[jira] [Created] (HADOOP-11107) Improve tests to not rely on JDK random implementation

Andrew Wang created HADOOP-11107:
------------------------------------

             Summary: Improve tests to not rely on JDK random implementation
                 Key: HADOOP-11107
                 URL: https://issues.apache.org/jira/browse/HADOOP-11107
             Project: Hadoop Common
          Issue Type: Improvement
    Affects Versions: 2.5.1
            Reporter: Andrew Wang


As [~daryn] points out on HDFS-6840, writing unit tests that depend on a certain random seed always generating the same numbers is somewhat brittle, since the JDK does not guarantee this as part of compatibility. It'd be good to improve our unit testing to be agnostic to the JDK random implementation, e.g. by providing our own mock random implementation, or through other methods of verification.



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