Package org.apache.cassandra.config
Enum Class Config.PaxosStatePurging
- All Implemented Interfaces:
Serializable,Comparable<Config.PaxosStatePurging>,Constable
- Enclosing class:
- Config
Select the kind of paxos state purging to use. Migration to repaired is recommended, but requires that
regular paxos repairs are performed (which by default run as part of incremental repair).
Once migrated from legacy it is unsafe to return to legacy, but gc_grace mode may be used in its place
and performs a very similar cleanup process.
Should only be modified once paxos_variant = v2.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFunctionally similar to legacy, but the gc_grace expiry is applied at compaction and read time rather than using TTLs, so may be safely enabled at any point.system.paxos records are written and garbage collected with TTLs.Clears system.paxos records only once they are known to be persisted to a quorum of replica's base tables through the use of paxos repair. -
Method Summary
Modifier and TypeMethodDescriptionstatic Config.PaxosStatePurgingfromBoolean(boolean enabled) static Config.PaxosStatePurgingReturns the enum constant of this class with the specified name.static Config.PaxosStatePurging[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
legacy
system.paxos records are written and garbage collected with TTLs. Unsafe to use with Commit consistency ANY. Once migrated from, cannot be migrated back to safely. Must use gc_grace or repaired instead, as TTLs will not have been set. -
gc_grace
Functionally similar to legacy, but the gc_grace expiry is applied at compaction and read time rather than using TTLs, so may be safely enabled at any point. -
repaired
Clears system.paxos records only once they are known to be persisted to a quorum of replica's base tables through the use of paxos repair. Requires that regular paxos repairs are performed on the cluster (which by default are included in incremental repairs if paxos_variant = v2). This setting permits the use of Commit consistency ANY or LOCAL_QUORUM without any loss of durability or consistency, saving 1 RT.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromBoolean
-