You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-dev@hadoop.apache.org by "Steve Loughran (Created) (JIRA)" <ji...@apache.org> on 2012/03/15 17:37:38 UTC
[jira] [Created] (MAPREDUCE-4016) CompositeService should clone the
Configurations it passes to children
CompositeService should clone the Configurations it passes to children
----------------------------------------------------------------------
Key: MAPREDUCE-4016
URL: https://issues.apache.org/jira/browse/MAPREDUCE-4016
Project: Hadoop Map/Reduce
Issue Type: Sub-task
Components: mrv2
Affects Versions: 0.23.1, 0.24.0
Reporter: Steve Loughran
{{CompositeService.init(Configuration)}} saves the configuration passed in *and* passes the same instance down to all managed services. This means a change in the configuration of one child could propagate to all the others.
Unless this is desired, the configuration should be cloned for each child.
Fast and easy fix; tests can be added to those coming in MAPREDUCE-4014
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira