Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
master branch, 0.13.0, 1.0.0
-
None
-
2022-12-Storage
Description
2022-12-20 09:23:53,086 [pool-12-IoTDB-Recovery-Thread-Pool-1] ERROR o.a.i.d.e.c.t.CompactionRecoverTask:300 - root.iot-0 [Compaction][ExceptionHandler] target file sequence/root.iot/0/0/1670572962795-1051-2-1.inner is not complete, and some source files is lost, do nothing. Set allowCompaction to false
2022-12-20 09:23:53,087 [pool-12-IoTDB-Recovery-Thread-Pool-1] ERROR o.a.i.d.e.c.t.CompactionRecoverTask:133 - root.iot-0 [Compaction][Recover] Failed to recover compaction, set allowCompaction to false
Description
When the system is restarted, a compaction error is reported: the source file is deleted and the target file is also deleted, which will set allowCompaction to false.
Reason
Target files are selected to participate in other compaction tasks before the end of the current task, causing unexpected errors.
Solution
Set target file to COMPACTING until the end of task, so that it can be selected to participate in other task after this task finishes.