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

IoTDB restart does not truncate broken ChunkGroup bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12.3
    • None
    • None

    Description

      Bug Description

      When restoring a level 0 tsfile whose writing was interrupted, the wrong use of RestorableTsFileIOWriter will cause the file to have redundant ChunkGroup after Wal is written. These ChunkGroups will not be indexed by Metadata, so they will not cause query errors, but will cause redundant data in TsFile.

       

      Reproduce

      Add a System.exit(1) in MemTableFlushTask.ioTask, then run the IoTDB and insert some data. When flushing the memtable, the system will exit, and the writing tsfile is broken. Remove the System.exit(1) and restart the IoTDB, the tsfile will be restore during the recover process. Use TsFileSequenceRead to check the recovered tsfile, we will find out a broken ChunkGroup.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ThuLiuxuxin Liuxuxin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: