This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 8f29bcd8578 Load: Do not clear schema cache when last cache is
disabled (#15380)
8f29bcd8578 is described below
commit 8f29bcd85782b3ffd468d903fb6526b55ed76873
Author: Caideyipi <[email protected]>
AuthorDate: Mon Apr 21 17:32:17 2025 +0800
Load: Do not clear schema cache when last cache is disabled (#15380)
---
.../org/apache/iotdb/db/storageengine/dataregion/DataRegion.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java
index 44dc2cfbb6d..8880f4f1723 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java
@@ -3073,8 +3073,10 @@ public class DataRegion implements IDataRegionForQuery {
throw new LoadFileException(e);
} finally {
writeUnlock();
- // TODO: do more precise control and call "invalidateTableLastCache"
- TreeDeviceSchemaCacheManager.getInstance().cleanUp();
+ // TODO: do more precise control
+ if (CommonDescriptor.getInstance().getConfig().isLastCacheEnable()) {
+ TreeDeviceSchemaCacheManager.getInstance().cleanUp();
+ }
}
}