You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Tian Jiang (Jira)" <ji...@apache.org> on 2022/01/05 08:13:00 UTC

[jira] [Created] (IOTDB-2270) Thread leaks in tests

Tian Jiang created IOTDB-2270:
---------------------------------

             Summary: Thread leaks in tests
                 Key: IOTDB-2270
                 URL: https://issues.apache.org/jira/browse/IOTDB-2270
             Project: Apache IoTDB
          Issue Type: Improvement
          Components: Core/Cluster, Core/Engine
            Reporter: Tian Jiang


Below are the confirmed thread leaks, which mainly affect tests as such threads do not usually stop out of tests:

ClientManager stores a factory for each category of clients to create new clients. When asynchronous servers are used, each factory contains several selector threads to schedule asynchronous clients.  Because ClientManager does not provide a close() interface, the selectors will not be released after tests.

The thread pool for trimming WAL buffers in each virtual storage is not referenced after being created, so the thread cannot be stopped.

A similar thread leak occurs to QueryFrequencyRecorder as its pool is not referenced.

Some RaftMembers are not properly stopped, causing its background threads to leak.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)