mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-20 16:40:35 +00:00
While working on benchmarks for strong consistency we noticed that the raft logic attempted to take snapshots during the benchmark. Snapshot transfer is not implemented for strong consistency yet and the methods that take or transfer snapshots throw exceptions. This causes the raft groups to stop working completely. While implementing snapshot transfers is out of scope, we can implement some mitigations now to stop the tests from breaking: - The first commit adjusts the configuration options. First, it disables periodic snapshotting (i.e. creating a snapshot every X log entries). Second, it increases the memory threshold for the raft log before which a snapshot is created from 2MB to 10MB. - The second commit relaxes the take snapshot / drop snapshot methods and makes it possible to actually use them - they are no-ops. It is still forbidden to transfer snapshots. I am including both commits because applying only the first one didn't completely prevent the issue from occurring when testing locally. Refs: SCYLLADB-1115 Strong consistency is experimental, no need for backport. Closes scylladb/scylladb#29189 * github.com:scylladb/scylladb: strong_consistency: fake taking and dropping snapshots strong_consistency: adjust limits for snapshots