You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Jialin Qiao (Jira)" <ji...@apache.org> on 2021/08/11 13:23:00 UTC

[jira] [Created] (IOTDB-1560) Make RestorableTsFileWriter have idempotence

Jialin Qiao created IOTDB-1560:
----------------------------------

             Summary: Make RestorableTsFileWriter have idempotence
                 Key: IOTDB-1560
                 URL: https://issues.apache.org/jira/browse/IOTDB-1560
             Project: Apache IoTDB
          Issue Type: Improvement
          Components: TsFile
            Reporter: Jialin Qiao


When we construct a RestorableTsFileWriter on a non-complete TsFile, the write will truncate the broken ChunkGroup.

However, a ChunkGroup is being seen as complete only we see the next ChunkGroupHeader.

This causes when new RestorableTsFileWriter twice on a file, it will do truncate twice, even if the file has a complete ChunkGroup.

We need to identify the end to a ChunkGroup and make sure the RestorableTsFileWriter will only truncate one time for a TsFile.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)