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

Jack Tsai commented on IOTDB-2907:
----------------------------------

Hi, quick questions here. With the provided potential solution, it mentioned 
that the new cache should be registered in the system. From my understanding, 
does it mean that we need to create a global cache manager for StorageGroups? 
If so, should it be initiated from the beginning before any StorageGroup has 
been created?

> Improve cache management
> ------------------------
>
>                 Key: IOTDB-2907
>                 URL: https://issues.apache.org/jira/browse/IOTDB-2907
>             Project: Apache IoTDB
>          Issue Type: Improvement
>            Reporter: Jialin Qiao
>            Priority: Minor
>
> 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.7#820007)

Reply via email to