You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2021/11/16 09:14:48 UTC

[iotdb] branch BloomFilterCacheBug created (now 52ac2a3)

This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a change to branch BloomFilterCacheBug
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at 52ac2a3  Fix Bloom Filter Cache doesn't take effect bug

This branch includes the following new commits:

     new 52ac2a3  Fix Bloom Filter Cache doesn't take effect bug

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[iotdb] 01/01: Fix Bloom Filter Cache doesn't take effect bug

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch BloomFilterCacheBug
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 52ac2a344c12426eeb86d08bbd097a3c727e2d9a
Author: JackieTien97 <Ja...@foxmail.com>
AuthorDate: Tue Nov 16 17:14:05 2021 +0800

    Fix Bloom Filter Cache doesn't take effect bug
---
 .../java/org/apache/iotdb/db/engine/cache/TimeSeriesMetadataCache.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/engine/cache/TimeSeriesMetadataCache.java b/server/src/main/java/org/apache/iotdb/db/engine/cache/TimeSeriesMetadataCache.java
index a13fe93..00354bd 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/cache/TimeSeriesMetadataCache.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/cache/TimeSeriesMetadataCache.java
@@ -144,7 +144,6 @@ public class TimeSeriesMetadataCache {
         if (timeseriesMetadata == null) {
           Path path = new Path(key.device, key.measurement);
           // bloom filter part
-          TsFileSequenceReader reader = FileReaderManager.getInstance().get(key.filePath, true);
           BloomFilter bloomFilter =
               BloomFilterCache.getInstance()
                   .get(new BloomFilterCache.BloomFilterCacheKey(key.filePath), debug);
@@ -154,6 +153,7 @@ public class TimeSeriesMetadataCache {
             }
             return null;
           }
+          TsFileSequenceReader reader = FileReaderManager.getInstance().get(key.filePath, true);
           List<TimeseriesMetadata> timeSeriesMetadataList =
               reader.readTimeseriesMetadata(path, allSensors);
           // put TimeSeriesMetadata of all sensors used in this query into cache