Description
In the code below, frees the buffer first and cleans up out. The buffer content can be corrupted and then be flushed to out.
//SegmentedRaftLogWorker void close() { ... PlatformDependent.freeDirectBuffer(writeBuffer); IOUtils.cleanup(LOG, out); LOG.info("{} close()", name); }
Attachments
Issue Links
- is caused by
-
RATIS-2065 Avoid the out-of-heap memory OOM phenomenon of frequent creation and deletion of Raft group scenarios
- Resolved
- is related to
-
HDDS-11352 Intermittent Raft Log Corruption in TestOzoneManagerHAWithStoppedNodes
- Resolved
- links to