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

Flume gives opaque error if interceptor type not specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • None
    • None

    Description

      If you declare an interceptor in the configuration but you don't specify the type, flume-agent dies with an opaque NPE. Instead it should die with a message warning that the interceptor doesn't have a type. You can see this using the following config file:

      {{
      receiver1.sources = gen
      receiver1.sinks = null
      receiver1.channels = ch1

      receiver1.channels.ch1.type = memory

      receiver1.sources.gen.type = seq
      receiver1.sources.gen.channels = ch1

      receiver1.sinks.null.type = null
      receiver1.sinks.null.channel = ch1

      receiver1.sources.gen.interceptors = int_a
      }}

      Result is:
      {{
      12/07/22 17:34:11 ERROR properties.PropertiesFileConfigurationProvider: Failed to load configuration data. Exception follows.
      java.lang.NullPointerException
      at org.apache.flume.interceptor.InterceptorBuilderFactory.lookup(InterceptorBuilderFactory.java:31)
      at org.apache.flume.interceptor.InterceptorBuilderFactory.newInstance(InterceptorBuilderFactory.java:44)
      at org.apache.flume.channel.ChannelProcessor.configureInterceptors(ChannelProcessor.java:104)
      }}

      Attachments

        1. FLUME-1389.patch.v1.txt
          0.9 kB
          NO NAME

        Activity

          People

            pwendell@gmail.com NO NAME
            pwendell@gmail.com NO NAME
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: