You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Vivek Ratnavel Subramanian (JIRA)" <ji...@apache.org> on 2019/03/06 02:42:00 UTC

[jira] [Created] (HADOOP-16170) Configuration.getAllPropertiesByTag doesn't return correct values

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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org