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

   When sinkChannel invokes acknowledgeTsBlock(), bufferRetainedSizeInBytes is 
reduced first, but free() is not executed within Lock. If close() is called at 
this time, it will check bufferRetainedSizeInBytes 0 and pass. Then the 
finished method of fragmentInstance will be invoked, and it will check the 
memory reserved in memoryPool. But free() is not finished, so it will cause the 
memory leak exception.


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