///
/// Validate computed topic spec parameters and update topic status
///  * error is passed to the topic reason.
///
Validate computed topic spec parameters and update topic status
error is passed to the topic reason.
Validate computed topic spec parameters and update topic status error is passed to the topic reason .
pub fn validate_computed_topic_parameters(
        &self,
        param: &TopicReplicaParam,
    ) -> TopicNextState {
        if let Err(err) = TopicSpec::valid_partition(&param.partitions) {
            warn!("topic: {} partition config is invalid",self.key());
            TopicStatus::next_resolution_invalid_config(&err.to_string()).into()
        } else if let Err(err) = TopicSpec::valid_replication_factor(&param.replication_factor) {
            warn!("topic: {} replication config is invalid",self.key());
            TopicStatus::next_resolution_invalid_config(&err.to_string()).into()
        } else {
            debug!("topic: {} config is valid, transition to pending",self.key());
            TopicStatus::next_resolution_pending().into()
        }
    }
pub fn validate_computed_topic_parameters ( & self , param : & TopicReplicaParam , ) -> TopicNextState { if let Err ( err ) = TopicSpec :: valid_partition ( & param . partitions ) { warn ! ( " " self key ( ) ) ; TopicStatus :: next_resolution_invalid_config ( & err . to_string ( ) ) . into ( ) } else if let Err ( err ) = TopicSpec :: valid_replication_factor ( & param . replication_factor ) { warn ! ( " " self key ( ) ) ; TopicStatus :: next_resolution_invalid_config ( & err . to_string ( ) ) . into ( ) } else { debug ! ( " " self key ( ) ) ; TopicStatus :: next_resolution_pending ( ) . into ( ) } }
Validate computed topic spec parameters and update topic status
 error is passed to the topic reason.
Validate computed topic spec parameters and update topic status error is passed to the topic reason .
&self
param
&TopicReplicaParam