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

NPE in KafkaSourceCounter

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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-with-test-git-diff.patch
          3 kB
          Rigo MacTaggart
        2. FLUME-2672-with-test.patch
          3 kB
          Rigo MacTaggart
        3. FLUME-2672.patch
          0.8 kB
          Rigo MacTaggart

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment