[ 
https://issues.apache.org/jira/browse/KAFKA-5514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18041970#comment-18041970
 ] 

Evan Zhou commented on KAFKA-5514:
----------------------------------

Closing as this was fixed in KAFKA-19213, and there are [plans to propose a 
KIP|https://github.com/apache/kafka/pull/20134#issuecomment-3057714702] to 
deprecate the use of {{Properties}}. 

> 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
>
> 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