You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Jialin Qiao (Jira)" <ji...@apache.org> on 2021/12/20 06:45:00 UTC

[jira] [Commented] (IOTDB-2166) Fix TTL may delete the source files of running comapction tasks

    [ https://issues.apache.org/jira/browse/IOTDB-2166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17462408#comment-17462408 ] 

Jialin Qiao commented on IOTDB-2166:
------------------------------------

https://github.com/apache/iotdb/pull/4589

> Fix TTL may delete the source files of running comapction tasks
> ---------------------------------------------------------------
>
>                 Key: IOTDB-2166
>                 URL: https://issues.apache.org/jira/browse/IOTDB-2166
>             Project: Apache IoTDB
>          Issue Type: Bug
>    Affects Versions: 0.12.3
>            Reporter: Liuxuxin
>            Assignee: Liuxuxin
>            Priority: Major
>             Fix For: 0.12.4, 0.13.0-SNAPSHOT
>
>   Original Estimate: 8h
>  Remaining Estimate: 8h
>
> TTL is responsible for deleting expired TsFiles. Before deleting, TTL takes the write lock of SGP and the write lock of the file, and then deletes the file. When the compaction task starts, the read locks of source files are acquired. But the acquiring process is not atomic, and because TTL does not check for the file's merging state before deleting it, it is possible for the TTL to delete the source files of a running compaction task who has not acquired all the read locks of all source files yet.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)