You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "FengQingxin (Jira)" <ji...@apache.org> on 2022/01/19 11:37:00 UTC
[jira] [Created] (IOTDB-2448) [UNLOAD] Make RestorableTsFileWriter have idempotence
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)