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

Implement thread leakage check, fixing major thread leakage test and some flaky test #1227

Closed
wants to merge 124 commits into from

Conversation

kaisun2000
Copy link
Contributor

@kaisun2000 kaisun2000 commented Aug 7, 2020

  • My PR addresses the following Helix issues and references them in the PR description:

resolve #1226, #1239, #1254, #1247, #1246, #1245, #1244, #1241, #1240 etc a bunch of unstable test

Description

  • Here are some details about my PR, including screenshots of any UI changes:

There are some unit test not stable for various reasons. This PR addressed them.

Tests

  • The following tests are written for this issue:

  • The following is the result of the "mvn test" command on the appropriate module:

git hub run.

  • In case of new functionality, my PR adds documentation in the following wiki page:

(Link the GitHub wiki you added)

Commits

  • My commits all reference appropriate Apache Helix GitHub issues in their subject lines. In addition, my commits follow the guidelines from "How to write a good git commit message":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters (not including Jira issue reference)
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

Code Quality

  • My diff has been formatted using helix-style.xml
    (helix-style-intellij.xml if IntelliJ IDE is used)

@kaisun2000 kaisun2000 changed the title Implement thread leakage check for each test class #1226 Implement thread leakage check for each test class Aug 7, 2020
Copy link
Contributor

@junkaixue junkaixue left a comment

Choose a reason for hiding this comment

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

Please clean up the code. You have too many system.out.println. It could cause the test have more messed up info in test result.

@jiajunwang
Copy link
Contributor

@kaisun2000 Let's don't keep adding more changes to the same PR. I think you have put 2 PRs into one change. It should be at least, 1. thread leakage check. 2. fixing the tests (I would prefer fixing them separately, but if the fixes are similar then it's OK).

Copy link
Contributor

@jiajunwang jiajunwang left a comment

Choose a reason for hiding this comment

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

@kaisun2000 I strongly recommend splitting the logic changes from the pure testing fixes.
I mainly reviewed the logic change part. The test changes are too long to review. Could you please re-org the PR?

@kaisun2000
Copy link
Contributor Author

@kaisun2000 I strongly recommend splitting the logic changes from the pure testing fixes.
I mainly reviewed the logic change part. The test changes are too long to review. Could you please re-org the PR?

Let us sync about it offline. There are conflict of different requirements.

1/ If our goal is to have all the test pass in github, we have to run it consistently till it converge to no failing test with all the changes in. Otherwise, how can we verify?
2/ The huge diff would be difficult to review. Yes, that is another concern.
3/ We have to make test converge quickly as people are checking in new code and potentially introducing new unstableness. We have to act quick, or it will not converge.

@jiajunwang
Copy link
Contributor

Close due to inactive.

@jiajunwang jiajunwang closed this May 7, 2021
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.

Checking Resource Leak at end of a test class
5 participants