Threadleak check#1
Open
kaisun2000 wants to merge 131 commits into
Open
Conversation
1e5799a to
8d8cb17
Compare
c97b3df to
1af98ef
Compare
3cd98c5 to
2bc27d5
Compare
86d805c to
7981dca
Compare
7981dca to
dfcd336
Compare
It was discovered that even though there was a routing data change, _byteArrayZkClient was not being created anew using the newly read routing data. This would cause issues with the zookeeper endpoints provided through Helix REST. This change cleans up some internal methods and ensures that the byte array zk client gets nullified every time there is routing data change. More specifically, the code was closing byteArrayDataAccessor but not byteArrayZkClient. This meant that the same byteArrayZkClient would be used even though everything was reset and routing data was updated. Hence, the data accessor was not really being created from scratch. This change makes sure that the underlying byteArrayZkClient gets closed and nullified upon routing data change.
…ache#1533) Stabilizing several tests by giving a starting up waiting periods up-on constructing BestPossibleExternalViewVerifier. Co-authored-by: Kai Sun <ksun@ksun-mn1.linkedin.biz>
Fix TestHelixAdminCli testDeactivateCluster flakiness. As this test does not wait till the cluster converge before tearing it down. The tearing down process can have exceptions depending on timing. Co-authored-by: Kai Sun <ksun@ksun-mn1.linkedin.biz>
…pache#1536) Fix two flaky tests. TestHelixZkClient may fail if there is session changes. TestClusterStatusMonitorLifecycle may fail if the asyn thread pool tearning down is slow (asyncly). Both happen rarely but do happen. Co-authored-by: Kai Sun <ksun@ksun-mn1.linkedin.biz>
…pache#1538) TestRoutingDataCache can be flaky if entering the test the cluster is not in a stable state. We fix it by wait till the cluster is stable. Co-authored-by: Kai Sun <ksun@ksun-mn1.linkedin.biz>
Fixed bug apache#1516: Tutorial doc page leads to compilation and execution errors. Co-authored-by: Bruno Freudensprung <bruno.freudensprung@kairntech.com>
Fix several tests with resource leakage. Co-authored-by: Kai Sun <ksun@ksun-mn1.linkedin.biz>
Recently unit test can not complete due to threads leaking and ZK session leaking. We identified the leaks and fixed them. In order for future test not to leak resources, we need a way to enforce test class would release/clean up resource created during test. A check is implemented in @afterclass in ZkTestBase.java.
thus we can attribute the thread leakage accordingly 2/ fix thread leakage in apache#1247, apache#1246, apache#1245, apache#1244, apache#1241, apache#1240
…iled. TestRoutingTableProviderPeriodicRefresh is still flaky. Totally depends on timing.
added 26 commits
November 17, 2020 18:29
…when adding job configs.
shutdownNow() not public.
…ementAfterDelayTime from merge. Added it back.
separate pr now.
dfcd336 to
f3cbb1e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issues
(apache#200 - Link your issue number here: You can write "Fixes #XXX". Please use the proper keyword so that the issue gets closed automatically. See https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue
Any of the following keywords can be used: close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved)
Description
(Write a concise description including what, why, how)
Tests
(List the names of added unit/integration tests)
(Before CI test pass, please copy & paste the result of "mvn test")
Documentation (Optional)
(Link the GitHub wiki you added)
Commits
Code Quality
(helix-style-intellij.xml if IntelliJ IDE is used)