Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-3160

TsFile will be corrupted when flushing memtable appears OOM.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • master branch, 0.13.0
    • 0.14.0, 0.13.1
    • None
    • 2022-5-StorageEngine

    Description

      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.

      Attachments

        1. image-2022-05-11-16-59-49-557.png
          51 kB
          周沛辰
        2. image-2022-05-11-17-08-56-755.png
          89 kB
          周沛辰

        Issue Links

          Activity

            People

              HeimingZ Haiming Zhu
              ChouBenson 周沛辰
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: