[
https://issues.apache.org/jira/browse/KAFKA-19645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai resolved KAFKA-19645.
------------------------------------
Fix Version/s: 4.2.0
Resolution: Fixed
> add a lower bound to num.replica.fetchers
> -----------------------------------------
>
> Key: KAFKA-19645
> URL: https://issues.apache.org/jira/browse/KAFKA-19645
> Project: Kafka
> Issue Type: Improvement
> Reporter: Chia-Ping Tsai
> Assignee: Lan Ding
> Priority: Minor
> Fix For: 4.2.0
>
>
> `num.replica.fetchers` parameter does not enforce a lower bound, so both
> `num.replica.fetchers=0` or `num.replica.fetchers=-1` are valid when starting
> a broker. However, setting `num.replica.fetchers=-1` will result in only one
> fetcher being created, while setting `num.replica.fetchers=0` will cause a
> `java.lang.ArithmeticException: / by zero` during replication startup
--
This message was sent by Atlassian Jira
(v8.20.10#820010)