Liuxuxin created IOTDB-1912:
-------------------------------
Summary: The file disk space usage increases abnormally after
IoTDB restarts
Key: IOTDB-1912
URL: https://issues.apache.org/jira/browse/IOTDB-1912
Project: Apache IoTDB
Issue Type: Bug
Affects Versions: master branch
Reporter: Liuxuxin
Assignee: Liuxuxin
Fix For: master branch
# Description
If the IoTDB is shut down when cross compaction when IoTDB is restarted, there
will be abnormal redundant data in TsFile, but the abnormal data cannot be seen
from the client.
# Cause
1. The target file of cross-space compaction is deleted when sgp recover, the
cross-space compaction recover can never find the target file.
2. The MergeLogAnalyzer searches for a log that is never written to the log
file.
3. The resume cross-space compaction process gets the schema from merge
resources, but the schema list in merge resources is always empty when
performing recovery.
4. The recovery of cross-space compaction uses an InputStream to truncate the
file, which is forbidden by JVM.
5. The ChunkMetadata list in the last chunk group is lost when using a
RestorableTsFileIOWriter to continue to write on the target file.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)