[ 
https://issues.apache.org/jira/browse/KAFKA-16677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17844150#comment-17844150
 ] 

PoAn Yang commented on KAFKA-16677:
-----------------------------------

Hi [~chia7712], I think the feature is good. Most of time, we use same config 
to run KRAFT and CO_KRAFT. If we can use `setTypes`, we don't need to create 
another builder.

> Replace ClusterType#ALL and ClusterType#DEFAULT by Array
> --------------------------------------------------------
>
>                 Key: KAFKA-16677
>                 URL: https://issues.apache.org/jira/browse/KAFKA-16677
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Chia-Ping Tsai
>            Assignee: Chia-Ping Tsai
>            Priority: Minor
>
> Both ClusterType#ALL and ClusterType#DEFAULT are a kind of "tag" instead of 
> true "type". It seems to me they can be removed by using Array. For example:
> ClusterType#ALL -> {Type.ZK, Type.KRAFT, Type.CO_KRAFT}
> ClusterType#DEFAULT -> {}
> There are two benefits
> 1. That is more readable for "ALL type". 
> 2. We don't throw the awkward "exception" when seeing "DEFAULT".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to