Vivek Ratnavel Subramanian created HADOOP-16170:
---------------------------------------------------
Summary: Configuration.getAllPropertiesByTag doesn't return
correct values
Key: HADOOP-16170
URL: https://issues.apache.org/jira/browse/HADOOP-16170
Project: Hadoop Common
Issue Type: Bug
Reporter: Vivek Ratnavel Subramanian
The method `getAllPropertiesByTag` in Configuration class does not return
correct values for config properties. It does not update its internal map
`propertyTagsMap` when a new config resource without any tag information is
added.
For example, if a configuration `core-default.xml` is added
<configuration>
<property>
<name>ozone.container.cache.size</name>
<value>1024</value>
<tag>PERFORMANCE, CONTAINER, STORAGE</tag>
</property>
<configuration>
And then a new config resource `core-site.xml` is added
<configuration>
<property>
<name>ozone.container.cache.size</name>
<value>2048</value>
</property>
<configuration>
`getAllPropertiesByTag` method will return a map that has `1024` as value for
`ozone.container.cache.size`. This is because the second config resource
`core-site.xml` does not have `<tag></tag>` information available.
Expected Result: `getAllPropertiesByTag` should return the correct overridden
values for all properties.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]