Skip to content

Instantly share code, notes, and snippets.

@spmallette
Created November 30, 2022 19:00
Show Gist options
  • Save spmallette/d4ba385c137dc7f182c911a21dfd6126 to your computer and use it in GitHub Desktop.
Save spmallette/d4ba385c137dc7f182c911a21dfd6126 to your computer and use it in GitHub Desktop.
gremlin> tx = g.tx()
==>org.apache.tinkerpop.gremlin.driver.remote.DriverRemoteTransaction@2a04ab05
gremlin> gtx = tx.begin()
==>graphtraversalsource[emptygraph[empty], standard]
gremlin> gtx.V().count()
==>1
gremlin> gtx.addV('person')
==>v[a8c21f2a-4a1a-6220-e702-ed65df4e290a]
gremlin> // wait 10 minutes
==>true
gremlin> gtx.V().count()
==>1
gremlin> gtx.tx().commit()
==>null
gremlin> gtx.V().count()
org.apache.tinkerpop.gremlin.process.remote.RemoteConnectionException: java.lang.IllegalStateException: Client is closed
Type ':help' or ':h' for help.
Display stack trace? [yN]n
gremlin> g.V().count()
==>1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment