You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by John Speidel <js...@hortonworks.com> on 2015/07/09 23:54:55 UTC
Review Request 36376: BP configuration methods getFullProperties() and
getFullAttributes() may modify the underlying configuration in some cases
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/36376/
-----------------------------------------------------------
Review request for Ambari and Robert Nettleton.
Bugs: AMBARI-12366
https://issues.apache.org/jira/browse/AMBARI-12366
Repository: ambari
Description
-------
In some cases the methods getFullProperties() and getFullAttributes() in the Configuration class modify the underlying configuration. In one path, a deep copy isn't being properly done on the configuration maps so the underlying map is being modified. This can cause a host group configuration to be set on the cluster scoped configuration.
Diffs
-----
ambari-server/src/main/java/org/apache/ambari/server/topology/Configuration.java 91b7736
ambari-server/src/test/java/org/apache/ambari/server/topology/ConfigurationTest.java 9bab88f
Diff: https://reviews.apache.org/r/36376/diff/
Testing
-------
Functional:
- Deployed a cluster via blueprint which contained host group scoped config
Unit:
- Fixed existing unit tests to catch this scenario
- Currently running full unit test suite and will update Jira with results prior to merging
Thanks,
John Speidel
Re: Review Request 36376: BP configuration methods
getFullProperties() and
getFullAttributes() may modify the underlying configuration in some cases
Posted by John Speidel <js...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/36376/
-----------------------------------------------------------
(Updated July 9, 2015, 11:10 p.m.)
Review request for Ambari and Robert Nettleton.
Bugs: AMBARI-12366
https://issues.apache.org/jira/browse/AMBARI-12366
Repository: ambari
Description
-------
In some cases the methods getFullProperties() and getFullAttributes() in the Configuration class modify the underlying configuration. In one path, a deep copy isn't being properly done on the configuration maps so the underlying map is being modified. This can cause a host group configuration to be set on the cluster scoped configuration.
Diffs
-----
ambari-server/src/main/java/org/apache/ambari/server/topology/Configuration.java 91b7736
ambari-server/src/test/java/org/apache/ambari/server/topology/ConfigurationTest.java 9bab88f
Diff: https://reviews.apache.org/r/36376/diff/
Testing (updated)
-------
Functional:
- Deployed a cluster via blueprint which contained host group scoped config
Unit:
- Fixed existing unit tests to catch this scenario
- Currently running full unit test suite and will update Jira with results prior to merging
Results :
Tests run: 3115, Failures: 0, Errors: 0, Skipped: 28
...
OK
----------------------------------------------------------------------
Total run:771
Total errors:0
Total failures:0
Thanks,
John Speidel
Re: Review Request 36376: BP configuration methods
getFullProperties() and
getFullAttributes() may modify the underlying configuration in some cases
Posted by Robert Nettleton <rn...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/36376/#review91216
-----------------------------------------------------------
Ship it!
Ship It!
- Robert Nettleton
On July 9, 2015, 9:54 p.m., John Speidel wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/36376/
> -----------------------------------------------------------
>
> (Updated July 9, 2015, 9:54 p.m.)
>
>
> Review request for Ambari and Robert Nettleton.
>
>
> Bugs: AMBARI-12366
> https://issues.apache.org/jira/browse/AMBARI-12366
>
>
> Repository: ambari
>
>
> Description
> -------
>
> In some cases the methods getFullProperties() and getFullAttributes() in the Configuration class modify the underlying configuration. In one path, a deep copy isn't being properly done on the configuration maps so the underlying map is being modified. This can cause a host group configuration to be set on the cluster scoped configuration.
>
>
> Diffs
> -----
>
> ambari-server/src/main/java/org/apache/ambari/server/topology/Configuration.java 91b7736
> ambari-server/src/test/java/org/apache/ambari/server/topology/ConfigurationTest.java 9bab88f
>
> Diff: https://reviews.apache.org/r/36376/diff/
>
>
> Testing
> -------
>
> Functional:
> - Deployed a cluster via blueprint which contained host group scoped config
> Unit:
> - Fixed existing unit tests to catch this scenario
> - Currently running full unit test suite and will update Jira with results prior to merging
>
>
> Thanks,
>
> John Speidel
>
>