-
Notifications
You must be signed in to change notification settings - Fork 533
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
[SUREFIRE-2082] - Close file handles asap to prevent breaching the system's maximum number of open files #531
[SUREFIRE-2082] - Close file handles asap to prevent breaching the system's maximum number of open files #531
Conversation
@sman-81 please verify IT tests result ... |
wdym? |
Please look at result of build on GH |
eg: https://github.com/apache/maven-surefire/actions/runs/2280904237 |
After combing through the logs I found test failures in I will try to reproduce using the same command line as the Github build job: @slawekjaranowski |
|
mysterious! Do the CI builds include integration tests? Is the build green if you run this locally:
|
yes - with many oses
yes
|
Utf8RecodingDeferredFileOutputStream.java should not be changed from Java NIO to Java IO, it cost me some time to do it with NIO. You involved two interests in one method. Write is write operation. Close is close. |
The member
The original code opens the file in
wym? The original code opens one file for stdout and one for stderr redirection for each test case (writing to stdout/err) and keeps the file handles open until completion of the whole test set <-- this is were the original code is flawed! |
…em's maximum number of open files
Here are my changes #534, we can talk about it. |
Please feel free to go ahead and use your solution. I close my pull request. |
@sman-81 |
@sman-81 |
This pull request fixes bug SUREFIRE-2082 by closing stdout/stderr capture file handles of a huge test set as early as possible rather than at the completion of the whole set.
Following this checklist to help us incorporate your contribution quickly and easily:
for the change (usually before you start working on it). Trivial changes like typos do not
require a JIRA issue. Your pull request should address just this issue, without
pulling in other changes.
[SUREFIRE-XXX] - Fixes bug in ApproximateQuantiles
,where you replace
SUREFIRE-XXX
with the appropriate JIRA issue. Best practiceis to use the JIRA issue title in the pull request title and in the first line of the
commit message.
mvn clean install
to make sure basic checks pass. A more thorough check willbe performed on your pull request automatically.
mvn -Prun-its clean install
).If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.
I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
In any other case, please file an Apache Individual Contributor License Agreement.