pub struct PartitionRecord {
pub topic: String,
pub partition: i32,
pub leader: NodeId,
pub replicas: Vec<NodeId>,
pub isr: Vec<NodeId>,
pub leader_epoch: i32,
pub adding_replicas: Vec<NodeId>,
pub removing_replicas: Vec<NodeId>,
pub directories: Vec<Uuid>,
pub partition_epoch: i32,
}Fields§
§topic: String§partition: i32§leader: NodeId§replicas: Vec<NodeId>§isr: Vec<NodeId>§leader_epoch: i32Per-partition leader epoch. Bumped on every leader change. Older on-disk metadata is not migrated.
adding_replicas: Vec<NodeId>Replicas being added in an in-flight reassignment. Empty when no reassignment in flight. KIP-455.
removing_replicas: Vec<NodeId>Replicas being removed in an in-flight reassignment. Empty when no reassignment in flight. KIP-455.
directories: Vec<Uuid>KIP-858: the log-directory UUID hosting each replica, parallel to
Self::replicas (same index order). Uuid::nil() is
DirectoryId.UNASSIGNED — the owning broker has not yet reported
its AssignReplicasToDirs for this replica. The controller maps a
broker’s failed-dir UUID to the partitions it must fail over by
matching this against the broker’s replica slot.
partition_epoch: i32KIP-631: per-partition state epoch. Increments on every state change (leader election, ISR change, reassignment). Set to 0 on creation. Default of -1 matches the KIP-631 schema default for compatibility with records written before this field was added.
Trait Implementations§
Source§impl Clone for PartitionRecord
impl Clone for PartitionRecord
Source§fn clone(&self) -> PartitionRecord
fn clone(&self) -> PartitionRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PartitionRecord
impl Debug for PartitionRecord
Source§impl Default for PartitionRecord
impl Default for PartitionRecord
Source§fn default() -> PartitionRecord
fn default() -> PartitionRecord
Source§impl<'de> Deserialize<'de> for PartitionRecord
impl<'de> Deserialize<'de> for PartitionRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for PartitionRecord
Source§impl PartialEq for PartitionRecord
impl PartialEq for PartitionRecord
Source§fn eq(&self, other: &PartitionRecord) -> bool
fn eq(&self, other: &PartitionRecord) -> bool
self and other values to be equal, and is used by ==.