pub fn create_new_partitions(
        &self,
        partition_store: &PartitionLocalStore,
    ) -> Vec<PartitionKV> {

        let parent_kv_ctx = self.kv_ctx.make_parent_ctx();

        self.status.replica_map.iter()
            .filter_map(| (idx,replicas) | {
             
                let replica_key = ReplicaKey::new(self.key(),*idx);
                debug!("Topic: {} creating partition: {}",self.key(),replica_key);
                if partition_store.contains_key(&replica_key) {
                    None 
                } else {
                    Some(
                        PartitionKV::with_spec(
                            replica_key,
                            replicas.clone().into()
                        )
                        .with_kv_ctx(parent_kv_ctx.clone())
                    )
                } 
            }).collect()
        
    }
/// create partition children if it doesn't exists
create partition children if it doesn't exists
create partition children if it doesn ' t exists
pub fn create_new_partitions(
        &self,
        partition_store: &PartitionLocalStore,
    ) -> Vec<PartitionKV> {
        let parent_kv_ctx = self.kv_ctx.make_parent_ctx();
        self.status.replica_map.iter()
            .filter_map(| (idx,replicas) | {
                let replica_key = ReplicaKey::new(self.key(),*idx);
                debug!("Topic: {} creating partition: {}",self.key(),replica_key);
                if partition_store.contains_key(&replica_key) {
                    None 
                } else {
                    Some(
                        PartitionKV::with_spec(
                            replica_key,
                            replicas.clone().into()
                        )
                        .with_kv_ctx(parent_kv_ctx.clone())
                    )
                } 
            }).collect()
    }
pub fn create_new_partitions ( & self , partition_store : & PartitionLocalStore , ) -> Vec < PartitionKV > { let parent_kv_ctx = self . kv_ctx . make_parent_ctx ( ) ; self . status . replica_map . iter ( ) . filter_map ( | ( idx , replicas ) | { let replica_key = ReplicaKey :: new ( self . key ( ) , * idx ) ; debug ! ( " " self key ( ) replica_key ) ; if partition_store . contains_key ( & replica_key ) { None } else { Some ( PartitionKV :: with_spec ( replica_key , replicas . clone ( ) . into ( ) ) . with_kv_ctx ( parent_kv_ctx . clone ( ) ) ) } } ) . collect ( ) }
create partition children if it doesn't exists
create partition children if it doesn ' t exists
&self
partition_store
&PartitionLocalStore
&self
partition_store
&PartitionLocalStore