File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
distribution/tools/plugin-cli Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 6
6
* Side Public License, v 1.
7
7
*/
8
8
9
+ import org.elasticsearch.gradle.OS
10
+
9
11
apply plugin : ' elasticsearch.build'
10
12
11
13
base {
@@ -38,6 +40,12 @@ tasks.named("dependencyLicenses").configure {
38
40
tasks. named(" test" ). configure {
39
41
// TODO: find a way to add permissions for the tests in this module
40
42
systemProperty ' tests.security.manager' , ' false'
43
+ // These tests are "heavy" on the secure number generator. On Linux, the NativePRNG defaults to /dev/random for the seeds, and
44
+ // its entropy is quite limited, to the point that it's known to hang: https://bugs.openjdk.org/browse/JDK-6521844
45
+ // We force the seed to be initialized from /dev/urandom, which is less secure, but in case of unit tests is not important.
46
+ if (OS . current() == OS . LINUX ) {
47
+ systemProperty ' java.security.egd' , ' file:/dev/urandom'
48
+ }
41
49
}
42
50
43
51
/*
You can’t perform that action at this time.
0 commit comments