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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.1-beta, 3.0.0-alpha1
    • 2.1.1-beta
    • build, test
    • None
    • 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.1.patch
          1 kB
          Chris Nauroth
        2. HADOOP-9857.2.patch
          2 kB
          Chris Nauroth

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: