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

In session transaction opened from sessionless request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.2-incubating
    • 3.1.0-incubating
    • server
    • None

    Description

      When running a series of in session and sessionless request from the same client, an in session transaction can be opened by a sessionless request.

      This failing test (in GremlinServerIntegrateTest.java) demonstrated this:
      https://github.com/PommeVerte/incubator-tinkerpop/commit/f8d4e618a74821f72dc1e3c107cd3b30d34917f2

      If these same requests are made from two different clients there are no issues (see test in GremlinDriverIntegrateTest.java)

      Rundown of what the tests do :

      • Open a transaction (in session)
      • Add vertex (in session)
      • Commit transaction (in session)
      • Test if transaction is closed (in session) =TRUE
      • Send sessionless read request.
      • Test if transaction is closed(in session) =FALSE <--- bug should be =TRUE

      The bug only occurs if there's a sessionless read, and if the read returns elements (not FastNoSuchElement...).

      Attachments

        Activity

          People

            dmill Dylan Millikin
            dmill Dylan Millikin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: