Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-1944

NotificationHookConsumer throws exception while shutting down the consumer thread

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.0.0
    • 0.8.1, 1.0.0
    • atlas-core
    • None

    Description

      NotificationHookConsumer throws below exception while shutting down the consumer thread, this issue is possibly after this commit.
      https://github.com/apache/incubator-atlas/commit/0e7f8ea4603c858cc295259bbd1a22314b732f62

      CC [~nixonrodrigues]

      2017-07-12 01:26:09,743 WARN  - [pool-1-thread-1:] ~ Error stopping service org.apache.atlas.notification.NotificationHookConsumer (Services:69)
      java.util.ConcurrentModificationException: KafkaConsumer is not safe for multi-threaded access
              at org.apache.kafka.clients.consumer.KafkaConsumer.acquire(KafkaConsumer.java:1557)
              at org.apache.kafka.clients.consumer.KafkaConsumer.close(KafkaConsumer.java:1467)
              at org.apache.atlas.kafka.AtlasKafkaConsumer.close(AtlasKafkaConsumer.java:88)
              at org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.stop(NotificationHookConsumer.java:384)
              at org.apache.atlas.notification.NotificationHookConsumer.stopConsumerThreads(NotificationHookConsumer.java:172)
              at org.apache.atlas.notification.NotificationHookConsumer.stop(NotificationHookConsumer.java:155)
              at org.apache.atlas.service.Services.stop(Services.java:67)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:366)
              at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeDestroyMethods(InitDestroyAnnotationBeanPostProcessor.java:325)
              at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeDestruction(InitDestroyAnnotationBeanPostProcessor.java:154)
              at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:253)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:578)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:554)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:961)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:523)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:968)
              at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1033)
              at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1009)
              at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:961)
              at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:583)
              at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:116)
              at org.eclipse.jetty.server.handler.ContextHandler.callContextDestroyed(ContextHandler.java:808)
              at org.eclipse.jetty.servlet.ServletContextHandler.callContextDestroyed(ServletContextHandler.java:457)
              at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:842)
              at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:215)
              at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:529)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
              at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143)
              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:162)
              at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73)
              at org.eclipse.jetty.server.Server.doStop(Server.java:456)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
      

      Attachments

        Activity

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

          People

            amestry Ashutosh Mestry
            ayubpathan Ayub Pathan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment