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

SpillableMemoryChannel throws NPE when sink throws exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.5.0.1
    • None
    • Channel
    • None

    Description

      I'm aware that the spillablememory channel is an ongoing effort and not production ready but thought I'd submit this to help improve it.

      I've created a rather simple test case where I use a spillablememory channel connecting to an avro sink (this sink is pointing to another flume agent as a next hop). When I shutdown the flume in the next hop, which causes the avro client to get a ConnectionRefused exception, the SpillableMemoryChannel attempts to rollback the transaction, but gets the following NPE:

      java.lang.NullPointerException
      at org.apache.flume.channel.SpillableMemoryChannel$SpillableMemoryTransaction.doRollback(SpillableMemoryChannel.java:574)
      at org.apache.flume.channel.BasicTransactionSemantics.rollback(BasicTransactionSemantics.java:168)
      at org.apache.flume.sink.AbstractRpcSink.process(AbstractRpcSink.java:383)
      at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:68)
      at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:147)
      at java.lang.Thread.run(Thread.java:745)

      Attachments

        Activity

          People

            Unassigned Unassigned
            lundd Dave Lund
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: