kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mickael Maison (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (KAFKA-10460) ReplicaListValidator format checking is incomplete
Date Thu, 03 Dec 2020 14:38:01 GMT

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

Mickael Maison resolved KAFKA-10460.
------------------------------------
    Fix Version/s: 2.8.0
       Resolution: Fixed

> ReplicaListValidator format checking is incomplete
> --------------------------------------------------
>
>                 Key: KAFKA-10460
>                 URL: https://issues.apache.org/jira/browse/KAFKA-10460
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.4.1
>            Reporter: Robin Palotai
>            Assignee: Ankit Kumar
>            Priority: Minor
>             Fix For: 2.8.0
>
>
> See [https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/ConfigHandler.scala#L220] .
The logic is supposed to accept only two cases:
>  * list of k:v pairs
>  * a single '*'
> But in practice, since the disjunction's second part only checks that the head is '*',
the case where a k:v list is headed by a star is also accepted (and then later broker dies
at startup, refusing the value).
> This practically happened due to a CruiseControl bug (see [https://github.com/linkedin/cruise-control/issues/1322])
> Observed on 2.4, but seems to be present in HEAD's source as well.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message