You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2024/11/17 01:00:31 UTC
[jira] [Assigned] (KAFKA-18028) the effective kraft version of `--no-initial-controllers` should be 1 rather than 0
[ https://issues.apache.org/jira/browse/KAFKA-18028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chia-Ping Tsai reassigned KAFKA-18028:
--------------------------------------
Assignee: PoAn Yang (was: Chia-Ping Tsai)
> 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
>
> `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)