Geert Schuring created KAFKA-5514:
-------------------------------------
Summary: 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)