Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.0.0-alpha
-
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)