Skip to content

Commit 56bc93e

Browse files
authored
[To dev/1.3] Update last cache in load (#15637)
1 parent 5b27bf3 commit 56bc93e

File tree

18 files changed

+1012
-19
lines changed

18 files changed

+1012
-19
lines changed

integration-test/src/main/java/org/apache/iotdb/it/env/cluster/config/MppDataNodeConfig.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,16 @@ public DataNodeConfig setLoadTsFileAnalyzeSchemaMemorySizeInBytes(
8888
String.valueOf(loadTsFileAnalyzeSchemaMemorySizeInBytes));
8989
return this;
9090
}
91+
92+
@Override
93+
public DataNodeConfig setLoadLastCacheStrategy(String strategyName) {
94+
setProperty("last_cache_operation_on_load", strategyName);
95+
return this;
96+
}
97+
98+
@Override
99+
public DataNodeConfig setCacheLastValuesForLoad(boolean cacheLastValuesForLoad) {
100+
setProperty("cache_last_values_for_load", String.valueOf(cacheLastValuesForLoad));
101+
return this;
102+
}
91103
}

integration-test/src/main/java/org/apache/iotdb/it/env/remote/config/RemoteDataNodeConfig.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,14 @@ public DataNodeConfig setLoadTsFileAnalyzeSchemaMemorySizeInBytes(
5353
long loadTsFileAnalyzeSchemaMemorySizeInBytes) {
5454
return this;
5555
}
56+
57+
@Override
58+
public DataNodeConfig setLoadLastCacheStrategy(String strategyName) {
59+
return this;
60+
}
61+
62+
@Override
63+
public DataNodeConfig setCacheLastValuesForLoad(boolean cacheLastValuesForLoad) {
64+
return this;
65+
}
5666
}

integration-test/src/main/java/org/apache/iotdb/itbase/env/DataNodeConfig.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,8 @@ public interface DataNodeConfig {
3535

3636
DataNodeConfig setLoadTsFileAnalyzeSchemaMemorySizeInBytes(
3737
long loadTsFileAnalyzeSchemaMemorySizeInBytes);
38+
39+
DataNodeConfig setLoadLastCacheStrategy(String strategyName);
40+
41+
DataNodeConfig setCacheLastValuesForLoad(boolean cacheLastValuesForLoad);
3842
}

0 commit comments

Comments
 (0)