This is an automated email from the ASF dual-hosted git repository.
qiaojialin 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 67c469305f purge log instantly when take a snapshot (#6724)
67c469305f is described below
commit 67c469305f3ec4f9f0444945d36f86ae330d8872
Author: William Song <[email protected]>
AuthorDate: Tue Aug 9 16:15:33 2022 +0800
purge log instantly when take a snapshot (#6724)
---
.../src/main/java/org/apache/iotdb/consensus/config/RatisConfig.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/consensus/src/main/java/org/apache/iotdb/consensus/config/RatisConfig.java
b/consensus/src/main/java/org/apache/iotdb/consensus/config/RatisConfig.java
index b7c00bc503..e976137287 100644
--- a/consensus/src/main/java/org/apache/iotdb/consensus/config/RatisConfig.java
+++ b/consensus/src/main/java/org/apache/iotdb/consensus/config/RatisConfig.java
@@ -518,7 +518,7 @@ public class RatisConfig {
private int queueElementLimit = 4096;
private SizeInBytes queueByteLimit = SizeInBytes.valueOf("64MB");
private int purgeGap = 1024;
- private boolean purgeUptoSnapshotIndex = false;
+ private boolean purgeUptoSnapshotIndex = true;
private SizeInBytes segmentSizeMax = SizeInBytes.valueOf("24MB");
private int segmentCacheNumMax = 2;
private SizeInBytes segmentCacheSizeMax = SizeInBytes.valueOf("200MB");