You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Mario Uso Hernandez (Jira)" <ji...@apache.org> on 2021/06/30 15:05:00 UTC

[jira] [Created] (CURATOR-601) TestingCluster Threads leak with Zk 3.6.X

Mario Uso Hernandez created CURATOR-601:
-------------------------------------------

             Summary: TestingCluster Threads leak with Zk 3.6.X
                 Key: CURATOR-601
                 URL: https://issues.apache.org/jira/browse/CURATOR-601
             Project: Apache Curator
          Issue Type: Bug
          Components: Tests
    Affects Versions: 5.1.0, 5.0.0
            Reporter: Mario Uso Hernandez


We are testing Curator 5.1.0 with ZK 3.6.0 to 3.6.3 and found out our test cases are failing due to VM Crashing (Which is not happening with ZK 3.5.X). After further investigation, it seems some threads are being leaked after each test executed.

We are using TestingClusters of 1 and 3 members in this testsĀ 

After a single test of using 3 TestingCluster we can see this threads still alive:
{code:java}
Threads after test is finished
Active Threads: 14
0: Thread[main,5,main]
1: Thread[Monitor Ctrl-Break,5,main]
2: Thread[Log4j2-TF-2-Scheduled-1,5,main]
3: Session Sets (0)/(0):4: Thread[WorkerSender[myid=2],5,main]
5: Thread[WorkerSender[myid=3],5,main]
6: Thread[WorkerSender[myid=1],5,main]
7: Thread[WorkerReceiver[myid=2],5,main]
8: Thread[WorkerReceiver[myid=1],5,main]
9: Thread[WorkerReceiver[myid=3],5,main]
10: Session Sets (0)/(0):11: Session Sets (2)/(0):
0 expire at Wed Jun 30 16:53:55 CEST 2021:
0 expire at Wed Jun 30 16:53:58 CEST 2021:12: Thread[QuorumConnectionThread-[myid=2]-3,5,main]
13: Thread[QuorumConnectionThread-[myid=1]-3,5,main]
{code}
After some tests it scalates quickly to 200-300 theards that never ends until VM Crash.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)