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

ARTEMIS-2408 Changing FileDescriptors rule as classRule #2762

Merged
merged 2 commits into from
Jul 19, 2019

Conversation

clebertsuconic
Copy link
Contributor

No description provided.

@clebertsuconic
Copy link
Contributor Author

@brusdev I'm running tests with these changes in. We can't really extend the testsuite for 1.5 on a fast box, and 3 hours more on a slow box (that's what I'm seeing when I run the testsuite now).

lets see how it goes with a classRule instead. perhaps it's what we need.

@brusdev
Copy link
Member

brusdev commented Jul 19, 2019

@clebertsuconic the lsof check is very useful to investigate on files leaks so it could be kept only if maxVariance > 0 or it could be moved in NoFilesBehind (when filesToCheck = {}) or it could be moved in a new rule to enable only if necessary.

@clebertsuconic
Copy link
Contributor Author

clebertsuconic commented Jul 19, 2019

@brusdev: I'm a bit concerned about the lsof check, as being dead code.. the day you need it it hasn't been used forever and nobody knows what it does. say you and me retire in 10 years, or we decide to move to another project, people dealing with this codebase will have no clue.

I changed it to show all the opened files in case there is a leak.. you as a developer would be able to figure out by looking at the list.

I also changed the timeout on shutdown. The issue is that once you added the block shutdown the tests were taking a lot of time to process those. with this at 0, I could get back to previous times.

If you could please review this?

/** We let this to be defined as a System Variable, as we need a different timeout over our testsuite.
* When running on a real server, this is the default we want.
* When running on a test suite, we need it to be 0, You should see a property on the main pom.xml */
public static final int DEFAULT_SHUTDOWN_TIMEOUT = parseDefaultVariable("DEFAULT_SHUTDOWN_TIMEOUT", 30_000);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops.. this is supposed to be 3 seconds

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@brusdev
Copy link
Member

brusdev commented Jul 19, 2019

LGTM +1

@asfgit asfgit merged commit 2d7d714 into apache:master Jul 19, 2019
asfgit pushed a commit that referenced this pull request Jul 19, 2019
@clebertsuconic clebertsuconic deleted the ARTEMIS-2408 branch July 30, 2019 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants