Hadoop Common
  1. Hadoop Common
  2. HADOOP-7335

Force entropy to come from non-true random for tests

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.22.0
    • Component/s: build, test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Passing the system property -Djava.security.egd=file:///dev/urandom forces the JVM to seed its PRNG from non-true random (/dev/urandom) instead of the true random (/dev/random). This makes the tests run faster, since without it they often hang waiting for entropy while Jetty is initializing.

      We should turn this on for the test targets by default, so developers/hudson boxes don't have to make this change system-wide or use workarounds like rngtools.

      1. hadoop-7335.txt
        0.6 kB
        Todd Lipcon

        Issue Links

          Activity

          Chris Nauroth made changes -
          Link This issue is related to HADOOP-9857 [ HADOOP-9857 ]
          Konstantin Shvachko made changes -
          Fix Version/s 0.22.0 [ 12314296 ]
          Todd Lipcon made changes -
          Link This issue is related to HADOOP-7841 [ HADOOP-7841 ]
          Aaron T. Myers made changes -
          Link This issue relates to HDFS-2046 [ HDFS-2046 ]
          Eli Collins made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Resolution Fixed [ 1 ]
          Todd Lipcon made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Todd Lipcon made changes -
          Field Original Value New Value
          Attachment hadoop-7335.txt [ 12481032 ]
          Todd Lipcon created issue -

            People

            • Assignee:
              Todd Lipcon
              Reporter:
              Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development