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

NPE in KafkaSourceCounter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.6.0
    • 1.7.0
    • Sinks+Sources
    • Mac OS 10.10.3, Java 1.7.0_60

    • Patch

    Description

      A NPE is thrown when KafkaSource calls counter.incrementKafkaEmptyCount() because it expects MonitoredCounterGroup.counterMap to contain key "source.kafka.empty.count". A patch is included which adds this key to the ATTRIBUTES string array, which is used to pre-populate keys with an initial value.

      Attachments

        1. FLUME-2672.patch
          0.8 kB
          Rigo MacTaggart
        2. FLUME-2672-with-test.patch
          3 kB
          Rigo MacTaggart
        3. FLUME-2672-with-test-git-diff.patch
          3 kB
          Rigo MacTaggart

        Activity

          People

            rigo Rigo MacTaggart
            rigo Rigo MacTaggart
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: