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

FailoverSinkProcessor replaces sinks with same priority

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • Sinks+Sources
    • None
    • RHEL 6.2 64-bit

    Description

      In FailoverSinkProcessor, sinks are indexed in a SortedMap according to their priority. This means that specifying 2 failover sinks with the same priority will actually cause only one of them to be included in the map since the last sink replaces all previous sinks of the same priority ("last one wins"). For example:

      a1.sinkgroups.g1.sinks = k1 k2 k3 k4
      a1.sinkgroups.g1.processor.type = failover
      a1.sinkgroups.g1.processor.priority.k1 = 5
      a1.sinkgroups.g1.processor.priority.k2 = 10
      a1.sinkgroups.g1.processor.priority.k3 = 10
      a1.sinkgroups.g1.processor.priority.k4 = 15

      Here, the intent of the user is to configure sinks k2 and k3 to have equal priority, but in fact only 1 of these sinks will be used... so the user is left with a total of 3 working failover sinks instead of 4.

      Attachments

        1. FLUME-1002.patch
          2 kB
          Juhani Connolly

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: