Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change tests random number generator to /dev/urandom #330

Merged
merged 2 commits into from Jun 3, 2015

Conversation

rsafonseca
Copy link
Contributor

This fixes a big performance issue with random number generation with more recent kernels and java versions in linux, the impact is specially higher on VMs
Some tests (that use random number generation) in some environments take randomly 1 - 20 mins to perform tests that should take only seconds to run.
This PR is just intended for fixing it on the tests.

This fixes a big performance issue with random number generation with more recent kernels and java versions in linux
@@ -958,6 +958,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<argLine>-Djava.security.egd=file:/dev/./urandom</argLine>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not simply, "/dev/urandom" ?

@rsafonseca
Copy link
Contributor Author

there's a builtin symlink that redirects /dev/urandom to /dev/random. this is the only way to make it work :)
This is a known issue with a lot of java apps running in linux

@karuturi
Copy link
Member

karuturi commented Jun 1, 2015

It was on my todo list for a long long time to check the random times of tests.
Thanks for fixing this @rsafonseca .Will merge this on master after some tests.

@asfgit asfgit merged commit 9030036 into apache:master Jun 3, 2015
asfgit pushed a commit that referenced this pull request Jun 3, 2015
rohityadavcloud added a commit that referenced this pull request Jan 20, 2021
UI changes for #4103

Co-authored-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants