周沛辰 created IOTDB-3160:
--------------------------
Summary: TsFile will be corrupted when flushing memtable appears
OOM.
Key: IOTDB-3160
URL: https://issues.apache.org/jira/browse/IOTDB-3160
Project: Apache IoTDB
Issue Type: Bug
Affects Versions: 0.13.0, master branch
Reporter: 周沛辰
Attachments: image-2022-05-11-16-59-49-557.png,
image-2022-05-11-17-08-56-755.png
When flushing memtable appears OOM, the file will be corrupted with metadata
only and cannot be repaired at the next restart. The result may be as
following:
When an exception is caught in the flushing memtable, the following logic will
be executed to call the TsFileIOWriter's endfile, causing the file to have only
the metadata area but no data area. After the next restart, memTable is
considered to have flushed properly and WAL is not used to restore tsfile.
!image-2022-05-11-16-59-49-557.png!
!image-2022-05-11-17-08-56-755.png|width=1594,height=592!
--
This message was sent by Atlassian Jira
(v8.20.7#820007)