[ 
https://issues.apache.org/jira/browse/KAFKA-18028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chia-Ping Tsai resolved KAFKA-18028.
------------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

> the effective kraft version of `--no-initial-controllers` should be 1 rather 
> than 0
> -----------------------------------------------------------------------------------
>
>                 Key: KAFKA-18028
>                 URL: https://issues.apache.org/jira/browse/KAFKA-18028
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Chia-Ping Tsai
>            Assignee: PoAn Yang
>            Priority: Minor
>             Fix For: 4.0.0
>
>
> `hasDynamicQuorum`  only considers the `initialControllers` [0], which is 
> configured when either `initial-controllers` or `standalone` is specified. It 
> will result in the following unexpected behaviors:
> 1. Using the `no-initial-controllers` configuration get `kraft.version=0`
> 2. This leads to a command error when executing `no-initial-controllers 
> --feature kraft.version=1`
> {quote}
> Cannot set kraft.version to 1 unless KIP-853 configuration is present. Try 
> removing the --feature flag for kraft.version.
> {quote}
> This issue is minor because no record is written for no-initial-controllers.
> [0] 
> https://github.com/apache/kafka/blob/trunk/metadata/src/main/java/org/apache/kafka/metadata/storage/Formatter.java#L343



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

Reply via email to