Hadoop YARN
  1. Hadoop YARN
  2. YARN-117 Enhance YARN service model
  3. YARN-122

CompositeService should clone the Configurations it passes to children

    Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Steve Loughran
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development