Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11107

Improve tests to not rely on JDK random implementation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5.1
    • None
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              andrew.wang Andrew Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: