[
https://issues.apache.org/jira/browse/TINKERPOP-3290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18141504#comment-18141504
]
ASF GitHub Bot commented on TINKERPOP-3290:
-------------------------------------------
xiazcy commented on PR #3760:
URL: https://github.com/apache/tinkerpop/pull/3760#issuecomment-6749131196
VOTE +1
> 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
> Priority: Critical
>
> {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)