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

Graph shutdown called twice when Atlas is shutting down

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0.0-alpha
    • 1.0.0
    • None
    • None

    Description

      The Graph database registers a shutdown hook and spring infers the destroy method bean, the shutdown hook registered with JVM kicks in after the spring bean destruction which causes this error to be reported in the logs

       

      2018-04-24 15:16:51,443 WARN  - [Thread-0:] ~ Failed to remove shutdown hook (StandardJanusGraph:262)
      java.lang.IllegalStateException: Shutdown in progress
          at java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.java:82)
          at java.lang.Runtime.removeShutdownHook(Runtime.java:239)
          at org.janusgraph.graphdb.database.StandardJanusGraph.removeHook(StandardJanusGraph.java:259)
          at org.janusgraph.graphdb.database.StandardJanusGraph.close(StandardJanusGraph.java:193)
          at org.apache.atlas.repository.graphdb.janus.AtlasJanusGraph.shutdown(AtlasJanusGraph.java:211)
          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)
      

      Attachments

        Activity

          People

            apoorvnaik Apoorv Naik
            apoorvnaik Apoorv Naik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: