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

Add null check before closing table in HbaseSink

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • Sinks+Sources
    • None

    Description

      26 Nov 2013 17:36:42,433 INFO  [conf-file-poller-0] (org.apache.flume.node.Application.stopAllComponents:115)  - Stopping Sink k1
      26 Nov 2013 17:36:42,433 INFO  [conf-file-poller-0] (org.apache.flume.lifecycle.LifecycleSupervisor.unsupervise:171)  - Stopping component: SinkRunner: { policy:org.apache.flume.sink.DefaultSinkProcessor@46edf730 counterGroup:{ name:null counters:{} } }
      26 Nov 2013 17:36:42,433 ERROR [conf-file-poller-0] (org.apache.flume.node.Application.stopAllComponents:118)  - Error while stopping SinkRunner: { policy:org.apache.flume.sink.DefaultSinkProcessor@46edf730 counterGroup:{ name:null counters:{} } }
      java.lang.NullPointerException
      	at org.apache.flume.sink.hbase.HBaseSink.stop(HBaseSink.java:169)
      	at org.apache.flume.sink.DefaultSinkProcessor.stop(DefaultSinkProcessor.java:53)
      	at org.apache.flume.SinkRunner.stop(SinkRunner.java:115)
      	at org.apache.flume.lifecycle.LifecycleSupervisor.unsupervise(LifecycleSupervisor.java:172)
      	at org.apache.flume.node.Application.stopAllComponents(Application.java:116)
      	at org.apache.flume.node.Application.handleConfigurationEvent(Application.java:87)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
      	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
      	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:302)
      	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:285)
      	at com.google.common.eventbus.EventBus.post(EventBus.java:249)
      	at org.apache.flume.node.PollingPropertiesFileConfigurationProvider$FileWatcherRunnable.run(PollingPropertiesFileConfigurationProvider.java:140)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      

      Attachments

        1. FLUME-2252.patch
          2 kB
          Gopinathan A

        Activity

          People

            gopinathan.av Gopinathan A
            gopinathan.av Gopinathan A
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: