ConfigChange

data class ConfigChange(val clock: Long, val node: NodeId, val index: Long, val old: ClusterConfig?, val new: ClusterConfig) : RaftTraceEvent

A config entry was appended to the log (adopted on append, per §6). Emitted by both the leader (on RaftNode.changeMembership) and followers (on receiving the AppendEntries carrying the config entry). This is the primary assertion point for membership-change tests — config and term are private engine state, so tests observe transitions through this event.

old is the previous effective configuration — the bootstrap config on the first ever change. new is the newly adopted configuration.

Constructors

Link copied to clipboard
constructor(clock: Long, node: NodeId, index: Long, old: ClusterConfig?, new: ClusterConfig)

Properties

Link copied to clipboard
open override val clock: Long

Logical monotonic clock — incremented on every emitted event.

Link copied to clipboard
val index: Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard