package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Packages
Package kvnemesisutil provides basic utilities for kvnemesis.
# Functions
GeneratorDataSpan returns a span that contains all of the operations created by this Generator.
MakeApplier constructs an Applier that executes against the given DBs.
MakeEngine returns a new Engine.
MakeGenerator constructs a Generator.
NewDefaultConfig returns a GeneratorConfig that is a reasonable default starting point for general KV usage.
RunNemesis generates and applies a series of Operations to exercise the KV api.
Validate checks for violations of our kv api guarantees.
Watch starts a new Watcher over the given span of kvs.
# Variables
GeneratorDataTableID is the table ID that corresponds to GeneratorDataSpan.
# Structs
Applier executes Steps.
BatchOperationConfig configures the relative probability of generating a kv.Batch of some number of operations as well as the composition of the operations in the batch itself.
ChangeLeaseConfig configures the relative probability of generating an operation that causes a leaseholder change.
ChangeReplicasConfig configures the relative probability of generating a ChangeReplicas operation.
ChangeSettingConfig configures the relative probability of generating a cluster setting change operation.
ChangeZoneConfig configures the relative probability of generating a zone configuration change operation.
ClientOperationConfig configures the relative probabilities of the bread-and-butter kv operations such as Get/Put/Delete/etc.
ClosureTxnConfig configures the relative probability of running some operations in a transaction by using the closure-based kv.DB.Txn method.
Engine is a simplified version of storage.ReadWriter.
Env manipulates the environment (cluster settings, zone configurations) that the Applier operates in.
Generator incrementally constructs KV traffic designed to maximally test edge cases.
GeneratorConfig contains all the tunable knobs necessary to run a Generator.
MergeConfig configures the relative probability of generating a Merge operation.
OperationConfig configures the relative probabilities of producing various operations.
SeqTracker is a container that helps kvnemesis map MVCC versions to operations as identified by their Seq.
SplitConfig configures the relative probability of generating a Split operation.
Watcher slurps all changes that happen to some span of kvs using RangeFeed.
# Interfaces
Logger is the log sink used by kvnemesis.
# Type aliases
GetReplicasFn is a function that returns the current voting and non-voting replicas, respectively, for the range containing a key.