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

The SEQ source doesn't seem to stop on a reconfig that should disable it

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.1.0
    • None
    • Sinks+Sources
    • None
    • RHEL 6.1 64-bit

    Description

      Steps:

      1) Run the flume node with a config file that has the sink disabled:

      a1.sources = r1
      a1.channels = c1
      #a1.sinks = k1
      a1.sources.r1.type = SEQ
      a1.sources.r1.channels = c1
      a1.channels.c1.type = MEMORY
      #a1.sinks.k1.type = logger
      #a1.sinks.k1.channel = c1

      If you add a print statement to ChannelProcessor.processEvent(), you'll see that the source is sending events to the channel.

      2) Modify the config so that the source is disabled, and a new sink is enabled:

      #a1.sources = r1
      a1.channels = c1
      a1.sinks = k1
      #a1.sources.r1.type = SEQ
      #a1.sources.r1.channels = c1
      a1.channels.c1.type = MEMORY
      a1.sinks.k1.type = logger
      a1.sinks.k1.channel = c1

      //exp: The sink should only receive events that were in the channel at the time that the source was enabled (effectively draining the source)
      //act: The sink continuously receives events from the same source that is disabled according to the config, but is enabled according to the continuous output seen.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              will@cloudera.com Will McQueen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: