[ 
https://issues.apache.org/jira/browse/TINKERPOP-3290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Mallette closed TINKERPOP-3290.
---------------------------------------
    Fix Version/s: 4.0.0
         Assignee: Stephen Mallette
       Resolution: Fixed

> TinkerGraph close() semantics should prevent further usage
> ----------------------------------------------------------
>
>                 Key: TINKERPOP-3290
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-3290
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: tinkergraph
>    Affects Versions: 3.8.2
>            Reporter: Stephen Mallette
>            Assignee: Stephen Mallette
>            Priority: Critical
>             Fix For: 4.0.0
>
>
> {code}
> gremlin> graph = TinkerGraph.open()
> ==>tinkergraph[vertices:0 edges:0]
> gremlin> g = traversal().with(graph)
> ==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard]
> gremlin> g.addV('person')
> ==>v[0]
> gremlin> g.V().count()
> ==>1
> gremlin> graph.close()
> ==>null
> gremlin> g.addV('person')
> ==>v[1]
> gremlin> g.V().count()
> ==>2
> {code}
> This will be at odds with the file-persistent version of TinkerGraph in 4.0 
> where we will need {{close()} to actually prevent further usage. Need to 
> align the pure in-memory graph with that.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to