[
https://issues.apache.org/jira/browse/ATLAS-2606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16451436#comment-16451436
]
Ashutosh Mestry commented on ATLAS-2606:
----------------------------------------
+1 for patch
> Graph shutdown called twice when Atlas is shutting down
> -------------------------------------------------------
>
> Key: ATLAS-2606
> URL: https://issues.apache.org/jira/browse/ATLAS-2606
> Project: Atlas
> Issue Type: Bug
> Affects Versions: 1.0.0-alpha
> Reporter: Apoorv Naik
> Assignee: Apoorv Naik
> Priority: Minor
> Fix For: 1.0.0
>
> Attachments: 0001-ATLAS-2606-Graph-shutdown-fix.patch
>
>
> 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
>
> {noformat}
> 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)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)