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

        

Reply via email to