Tian Jiang created IOTDB-1184: --------------------------------- Summary: A separate file-purging thread Key: IOTDB-1184 URL: https://issues.apache.org/jira/browse/IOTDB-1184 Project: Apache IoTDB Issue Type: Improvement Components: Core/Engine Reporter: Tian Jiang
Currently, we use a synchronized file purging strategy, which means the thread that wants to remove a TsFile will try write-locking the file before removing it. If the file is being queried, the thread may have to wait for a relatively long time until the corresponding queries are finished and the file is read-unlocked. So I propose a separate purging thread, any other threads that want to delete a TsFile may register the file in that thread, and the purging thread will periodically check the registered files, if they can be locked, the thread will write lock and remove them physically. -- This message was sent by Atlassian Jira (v8.3.4#803005)