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

   This PR fixes 3 issues:
   
   1. When removing a region of IoTConsensus, its LogDispatcher will be 
interrupted. Before the LogDispatcher exits, the thread that handles the 
removal will wait for at most 30 seconds to release resources. Therefore, when 
the wait timeouts, both the LogDispatcher thread and the region removal thread 
may release the same resource. As a result, memory allocated for IoT requests 
may be freed twice, leading to a negative memory size in the metric.
   Reference count is introduced to avoid memory from being freed twice.
   
   2. The IoTConsensus may merge several deletions with the same pattern or 
time range into one. During the process, the merge result will lose its search 
index.
   
   3. If a table deletion involves no TsFile, it will not be written to any WAL 
and cannot be sent by the IoTConsensus.


-- 
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