Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Do
-
3.0.2-incubating
-
None
-
None
Description
The semantics for Graph.close() are fairly open right now. See TinkerGraph:
gremlin> graph = TinkerFactory.createModern()
==>tinkergraph[vertices:6 edges:6]
gremlin> graph.close()
==>null
gremlin> graph.vertices()
==>v[1]
==>v[2]
==>v[3]
==>v[4]
==>v[5]
==>v[6]
Seems like a call to close() should mean something especially since we implement AutoCloseable. I believe that most graphs throw exceptions (Titan does IllegalStateException i think) if you try to access the graph once close() is called.