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

ChannelProcessor does not handle transactions appropriately

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If an Exception is thrown in ChannelProcessor.processEvent whilst getting an exception, tx will be null and when rollback is called on tx, an NPE will be thrown.

      12/04/18 19:03:17 ERROR source.PollableSourceRunner: Unhandled exception, logging and sleeping for 5000ms
      java.lang.NullPointerException
      	at org.apache.flume.channel.ChannelProcessor.processEvent(ChannelProcessor.java:183)
      	at org.apache.flume.source.SequenceGeneratorSource.process(SequenceGeneratorSource.java:48)
      	at org.apache.flume.source.PollableSourceRunner$PollingRunner.run(PollableSourceRunner.java:131)
      	at java.lang.Thread.run(Thread.java:662)
      

        Attachments

        1. FLUME-1131-1.patch
          10 kB
          Brock Noland
        2. FLUME-1131-0.patch
          10 kB
          Brock Noland

          Issue Links

            Activity

              People

              • Assignee:
                brocknoland Brock Noland
                Reporter:
                brocknoland Brock Noland
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: