FengQingxin created IOTDB-2448:
----------------------------------

             Summary: [UNLOAD] Make RestorableTsFileWriter have idempotence
                 Key: IOTDB-2448
                 URL: https://issues.apache.org/jira/browse/IOTDB-2448
             Project: Apache IoTDB
          Issue Type: Improvement
          Components: Core/TsFile
            Reporter: FengQingxin


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.20.1#820001)

Reply via email to