Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.12.2
-
2021-10-DragonGate
Description
- Description
If the IoTDB is shutdown when compacting, when IoTDB is restored, there will be an abnormal increase in data. - Cause
When SGP perform recover process, it new a RestorableTsFileIOWriter for each tsfile. However, it doesn't close the writer after using it.So the output stream to the file will be kept in process. When recovering compaction, if the system tries to delete a tsfile, exception will occur because the handler of the file isn't removed.
The new compaction process of same file will continue to write on this undeleted file.
Then, the undeleted data will be kept in the target file.
Attachments
Attachments
Issue Links
- links to