package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
CollectRemoteReplicaInfo retrieves information about: 1.
CollectStoresReplicaInfo captures states of all replicas in all stores for the sake of quorum recovery.
CommitReplicaChanges saves content storage batches into stores.
GetDescriptorChangesFromRaftLog iterates over raft log between indices lo (inclusive) and hi (exclusive) and searches for changes to range descriptors, as identified by presence of a commit trigger.
MarshalPlan writes replica update plan in format compatible with target version.
MarshalReplicaInfo serializes info into version dependent format.
MaybeApplyPendingRecoveryPlan applies loss of quorum recovery plan if it is staged in planStore.
NewPlanStore creates a plan store for recovery.
PlanReplicas analyzes captured replica information to determine which replicas could serve as dedicated survivors in ranges where quorum was lost.
PrepareUpdateReplicas prepares all changes to be committed to provided stores as a first step of apply stage.
ReadCleanupActionsInfo reads cleanup actions info if it is present in the reader.
RegisterOfflineRecoveryEvents checks if recovery data was captured in the store and notifies callback about all registered events.
RemoveCleanupActionsInfo removes cleanup actions info if it is present in the reader.
UnmarshalPlan reads json containing replica update plan into struct.
UnmarshalReplicaInfo deserializes ClusterReplicaInfo.
UpdateRangeLogWithRecovery inserts a range log update to system.rangelog using information from recovery event.
# Structs
ApplyUpdateReport contains info about recovery changes applied to stores.
PlannedReplicaUpdate contains detailed info about changes planned for particular replica that was chosen as a designated survivor for the range.
PlanningReport provides aggregate stats and details of replica updates that is used for user confirmation.
PrepareReplicaReport contains information about prepared change for a replica.
PrepareStoreReport contains information about all prepared changes for the stores.
RecoveryError is returned by replica planner when it detects problems with replicas in key space.
# Interfaces
Problem records errors found when checking keyspace coverage and health of survivor replicas.