choubenson opened a new pull request, #10257:
URL: https://github.com/apache/iotdb/pull/10257

   **Description**
   - There are too many merged scheduling threads, in which each dataRegion has 
a scheduled scheduling thread.
   - After the storageGroup is deleted, the compaction scheduled threads of 
each dataRegion corresponding to it are not released, resulting in thread 
leakage.
   
   **Solution**
   - Put the compaction scheduled threads in the `CompactionTaskManager` class 
for global management, and the global default number of threads is 2.
   - When creating a `DataRegion`, it will register with the 
`CompactionTaskManager`, so that the files under the `dataRegion` can be 
selected by the scheduled thread and submit the task. When deleting the 
`dataRegion` or when the system exits or meets an exception, it is necessary to 
unregister with the `CompactionTaskManager`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to