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

Evan Zhou resolved KAFKA-5514.
------------------------------
    Fix Version/s: 4.2.0
       Resolution: Fixed

> KafkaConsumer ignores default values in Properties object because of 
> incorrect use of Properties object.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-5514
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5514
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients
>    Affects Versions: 0.10.2.1
>            Reporter: Geert Schuring
>            Priority: Major
>             Fix For: 4.2.0
>
>
> When setting default values in a Properties object the KafkaConsumer ignores 
> these values because the Properties object is being treated as a Map. The 
> ConsumerConfig object uses the putAll method to copy properties from the 
> incoming object to its local copy. (See 
> https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerConfig.java#L471)
> This is incorrect because it only copies the explicit properties and ignores 
> the default values also present in the properties object. (Also see: 
> https://stackoverflow.com/questions/2004833/how-to-merge-two-java-util-properties-objects)



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

Reply via email to