Skip to content

Commit 96b108a

Browse files
authored
[server][hotfix] Allow not to do kv snapshot (#30)
1 parent dd5260a commit 96b108a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

fluss-server/src/main/java/com/alibaba/fluss/server/kv/snapshot/PeriodicSnapshotManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ public static PeriodicSnapshotManager create(
141141
}
142142

143143
public void start() {
144-
// disable periodic snapshot when periodicMaterializeDelay is negative
145-
if (!started && periodicSnapshotDelay >= 0) {
144+
// disable periodic snapshot when periodicMaterializeDelay is not positive
145+
if (!started && periodicSnapshotDelay > 0) {
146146

147147
started = true;
148148

website/docs/quickstart/flink.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ services:
5454
tablet-server.host: tablet-server
5555
data.dir: /tmp/fluss/data
5656
remote.data.dir: /tmp/fluss/remote-data
57+
kv.snapshot.interval: 0s
5758
lakehouse.storage: paimon
5859
paimon.catalog.metastore: filesystem
5960
paimon.catalog.warehouse: /tmp/paimon

0 commit comments

Comments
 (0)