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

Kamal Chandraprakash commented on KAFKA-5514:
---------------------------------------------

Geert Schuring,

What do you mean by the `default` values in the Properties object ? 

All the values are being safely copied to the new Properties object using the 
`putAll` method. The StackOverflow link states the same.

> 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
>
> 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
(v6.4.14#64029)

Reply via email to