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

Grant Henke reassigned KAFKA-1909:
----------------------------------

    Assignee: Grant Henke

> VerifiableProperties does not "see" default properties of the wrapped 
> Properties instance
> -----------------------------------------------------------------------------------------
>
>                 Key: KAFKA-1909
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1909
>             Project: Kafka
>          Issue Type: Bug
>          Components: config
>    Affects Versions: 0.8.1.1
>            Reporter: Tommy Becker
>            Assignee: Grant Henke
>
> The VerifiableProperties class wraps a java.util.Properties instance.  The 
> various getXXX methods in VerifiableProperties that do not take a default 
> value issue a containsKey() call to the underlying Properties instance to 
> determine if the property exists.  Unfortunately, the containsKey method is 
> merely (mis)-inherited from Hashtable; it doesn't query the Properties 
> instance own defaults.  The net effect of this is that only key value pairs 
> defined directly in the Properties instance are usable by Kafka.  We have a 
> base config that is used throughout our application but one particular 
> consumer needs different settings.  Trying to achieve this by using new 
> Properties(baseProperties) and setting the consumer specific values in that 
> doesn't work :(
> VerifiableProperties already provides its own containsKey method that should 
> simply be changed to return getProperty(<propname>) != null to avoid this 
> issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to