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 2022/04/13 09:33:00 UTC

[jira] [Created] (IOTDB-2907) Improve cache management

Jialin Qiao created IOTDB-2907:
----------------------------------

             Summary: Improve cache management
                 Key: IOTDB-2907
                 URL: https://issues.apache.org/jira/browse/IOTDB-2907
             Project: Apache IoTDB
          Issue Type: Improvement
            Reporter: Jialin Qiao


Currently, we have TimeseriesMetadataCache, ChunkMetadataCache, ChunkCache, and BloomFilterCache. 

These caches usually bind cached entries with specified TsFiles.

When deleting and recreating the storage group, the version of TsFile is reused, which may cause a cached entry inconsistent with data on the disk, thus causing bugs in the query.

 

A potential solution:

We need to manage all caches in system by an ICache interface containing clearWhenDeleteSG(String sgName). When adding a cache, it should implement ICache and register in the system. Then, deleting storage group could remove all registered Cache.

 



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