Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: add SnapshotPolicy::Never #854

Merged
merged 1 commit into from
May 24, 2023

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented May 24, 2023

Changelog

Feature: add SnapshotPolicy::Never

With SnapshotPolicy::Never, Openraft will not build snapshots
automatically based on a policy. Instead, the application has full
control over when snapshots are built. In this scenario, the application
can call the Raft::trigger_snapshot() API at the desired times to
manually trigger Openraft to build a snapshot.

Rename integration tests:


This change is Reviewable

With `SnapshotPolicy::Never`, Openraft will not build snapshots
automatically based on a policy. Instead, the application has full
control over when snapshots are built. In this scenario, the application
can call the `Raft::trigger_snapshot()` API at the desired times to
manually trigger Openraft to build a snapshot.

Rename integration tests:
- `log_compaction -> snapshot_building`
- `snapshto -> snapshot_streaming`

-  Fix: databendlabs#851
@drmingdrmer drmingdrmer merged commit 0223477 into databendlabs:main May 24, 2023
@drmingdrmer drmingdrmer deleted the 45-snapshot-policy branch May 24, 2023 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add an option SnapshotPolicy::Never
1 participant