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

Tests block and sometimes timeout on Windows due to invalid entropy source.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.1-beta, 3.0.0-alpha1
    • Fix Version/s: 2.1.1-beta
    • Component/s: build, test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Tests are configured to set the entropy source to file:///dev/urandom to prevent blocking on machines with low entropy. We've observed that on Windows, this will cause tests to block for 5 seconds trying to access this non-existent path the first time the process does something that needs entropy, such as using a SecureRandom or creating a UUID. This can cause tests to fail due to timeouts. In addition to the initial 5-second blocking, this causes the JVM to fall back to a slower, non-native seed generation implementation.

        Attachments

        1. HADOOP-9857.2.patch
          2 kB
          Chris Nauroth
        2. HADOOP-9857.1.patch
          1 kB
          Chris Nauroth

          Issue Links

            Activity

              People

              • Assignee:
                cnauroth Chris Nauroth
                Reporter:
                cnauroth Chris Nauroth
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: