Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2436

The gremlin server starts even if all graphs instantiation has failed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Done
    • 3.4.8
    • 3.5.0, 3.4.9
    • server
    • None

    Description

      Sometimes the gremlin server fails to open the graph due to backend failure. 

      In this case, gremlin server starts even if could not serve any request as  gremlin-groovy GremlinScriptEngine is not initialized. I think that in this case, gremlin server should stop (and be restarted in a kubernates cluster)
      8 Oct 2020 12:35:51,923 8660 [gremlin-server-exec-1] ERROR org.apache.tinkerpop.gremlin.jsr223.DefaultGremlinScriptEngineManager - Could not create GremlinScriptEngine for gremlin-groovy

      {{ java.lang.IllegalStateException: javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: graph for class: Script1 }}

      08 Oct 2020 12:35:45,228 1965 [main] WARN  org.apache.tinkerpop.gremlin.server.GremlinServer  - Graph [graph] configured at [/etc/opt/janusgraph/janusgraph.properties] could not be instantiated and will not be available in Gremlin Server.  GraphFactory message: GraphFactory could not instantiate this Graph implementation [class org.janusgraph.core.JanusGraphFactory]
      08 Oct 2020 12:35:45,228 1965 [main] WARN  org.apache.tinkerpop.gremlin.server.GremlinServer  - Graph [graph] configured at [/etc/opt/janusgraph/janusgraph.properties] could not be instantiated and will not be available in Gremlin Server.  GraphFactory message: GraphFactory could not instantiate this Graph implementation [class org.janusgraph.core.JanusGraphFactory]
       java.lang.RuntimeException: GraphFactory could not instantiate this Graph implementation [class org.janusgraph.core.JanusGraphFactory]
       	at org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:81)
       	at org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:69)
       	at ...
      

      Attachments

        Activity

          People

            spmallette Stephen Mallette
            trangosi Nicolas Trangosi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: