tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Mallette (Jira)" <j...@apache.org>
Subject [jira] [Commented] (TINKERPOP-2353) Error while Shutting Down Gremlin Server
Date Wed, 25 Mar 2020 19:31:00 GMT

    [ https://issues.apache.org/jira/browse/TINKERPOP-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17067027#comment-17067027
] 

Stephen Mallette commented on TINKERPOP-2353:
---------------------------------------------

The PR should resolve this problem. I was content to add {{null}} checks to shutdown once
it was clear how the server could get into that state. I thought JanusGraph had a custom {{GraphManager}}
and if they do they may want to trap errors rather than throw them the way the {{DefaultGraphManager}}
does in TinkerPop so as to allow the server to start with the graphs that did load properly
rather than behave in an all or nothing fashion. I'm not sure which is preferred, but whether
JanusGraph changes or not at least this problem should be fixed either way. Thanks for reporting
it.

> Error while Shutting Down Gremlin Server
> ----------------------------------------
>
>                 Key: TINKERPOP-2353
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2353
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.4.4
>            Reporter: Sarthak Ghosh
>            Priority: Minor
>
> I have a kubernetes environment where gremlin server is running as a server. While shutting
down gremlin-server, I see below mentioned error
> {code}
> 20:23:08.959 [gremlin-server-shutdown] INFO  o.a.t.gremlin.server.op.OpLoader - Adding
the cypher OpProcessor.
> 20:23:08.963 [gremlin-server-shutdown] INFO  o.a.t.gremlin.server.op.OpLoader - Adding
the standard OpProcessor.
> 20:23:08.968 [gremlin-server-shutdown] INFO  o.a.t.gremlin.server.op.OpLoader - Adding
the session OpProcessor.
> 20:23:09.163 [gremlin-server-shutdown] INFO  o.a.t.gremlin.server.op.OpLoader - Adding
the traversal OpProcessor.
> 20:01:51.200 [gremlin-server-shutdown] INFO  o.a.t.gremlin.server.GremlinServer - Shutting
down OpProcessor[]
> 20:01:51.201 [gremlin-server-shutdown] INFO  o.a.t.gremlin.server.GremlinServer - Shutting
down OpProcessor[cypher]
> 20:01:51.201 [gremlin-server-shutdown] INFO  o.a.t.gremlin.server.GremlinServer - Shutting
down OpProcessor[session]
> 20:01:51.202 [gremlin-server-shutdown] INFO  o.a.t.gremlin.server.GremlinServer - Shutting
down OpProcessor[traversal]
> 20:01:51.203 [gremlin-server-shutdown] INFO  o.a.t.gremlin.server.GremlinServer - Shutting
down thread pools.
> 20:01:51.203 [gremlin-server-shutdown] DEBUG o.a.t.gremlin.server.GremlinServer - Shutdown
Gremlin thread pool.
> Exception in thread "gremlin-server-shutdown" java.lang.NullPointerException
>         at org.apache.tinkerpop.gremlin.server.GremlinServer.stop(GremlinServer.java:255)
>         at org.apache.tinkerpop.gremlin.server.GremlinServer.lambda$new$0(GremlinServer.java:103)
>         at java.lang.Thread.run(Thread.java:748)
> {code}
> Steps carried out
> 1. server start -> *bin/gremlin-server.sh start*
> 2. Check whether graphs mentioned in gremlin-server.yaml have loaded properly or not
> 3. If failure, then stop the server by calling -> *bin/gremlin-server.sh stop*
> 4. Check logs5. Exit environment



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message