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

Choose then Enforce Semantics for Graph.close()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • 3.0.2-incubating
    • None
    • structure, test-suite
    • 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.

      Attachments

        Activity

          People

            spmallette Stephen Mallette
            spmallette Stephen Mallette
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: