Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-849

Configuration changes can not remove already configured components

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: NG alpha 1
    • Fix Version/s: None
    • Component/s: Configuration
    • Labels:
      None

      Description

      When Flume receives a configuration change event (via onConfigurationChange()) it can not detect the removal of configuration.

      For instance, if source 1 is configured and the user removes source 1 and adds source 2 Flume will now have both started rather than just source 2.

        Activity

        Hide
        bharat_tg bharat added a comment - - edited

        I was playing around with this one, when the user remove source1 and add source 2 both of them are not started and source 1 is actually stopped. The way new configuration changes are applied is that:
        1. stop all components on the existing configuration, Mbean is not unregistered in this case.
        2. now set the new configuration
        3. start all components (this will work on new configuration)

        source/sink/channel have stop time != 0 in case it was removed.

        Although I am not sure if a source/sink/channel is added again then existing channel is restarted or a new one is created.

        Show
        bharat_tg bharat added a comment - - edited I was playing around with this one, when the user remove source1 and add source 2 both of them are not started and source 1 is actually stopped. The way new configuration changes are applied is that: 1. stop all components on the existing configuration, Mbean is not unregistered in this case. 2. now set the new configuration 3. start all components (this will work on new configuration) source/sink/channel have stop time != 0 in case it was removed. Although I am not sure if a source/sink/channel is added again then existing channel is restarted or a new one is created.

          People

          • Assignee:
            Unassigned
            Reporter:
            esammer E. Sammer
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development