Skip to main content

bootstrap_feature_records_with_overrides

Function bootstrap_feature_records_with_overrides 

Source
pub fn bootstrap_feature_records_with_overrides(
    bootstrap_mv: i16,
    overrides: &BTreeMap<String, i16>,
) -> Vec<MetadataRecord>
Expand description

KIP-1022 krabka format seeding: one V1FeatureLevel record per registered feature.

Each feature is at its explicit --feature NAME=LEVEL override if present in overrides, else at its per-release default for bootstrap_mv.

Mirrors kafka-storage format: this function omits a feature whose resolved level is 0. Level 0 means absent and disabled, which is the default state. The seeded record set therefore matches what Kafka writes to its bootstrap.checkpoint.