ThreadedTransactionalGraph - commit method does not work

Issue #2 resolved
Giuseppe Santoro created an issue

The commit and rollback methods are not overridden so the tx field is always null. Check the example.

ThreadedTransactionalGraph graph = new BitsyGraph();

TransactionalGraph txGraph = graph.newTransaction();

txGraph.getVertices();
txGraph.stopTransaction(TransactionalGraph.Conclusion.SUCCESS);
txGraph.commit();//will throw a nep, same for rollback

bye.

Comments (3)

  1. Sridhar Ramachandran repo owner

    This should be fixed in the 1.1-SNAPSHOT. The latest JAR should be available in Maven Sonatype as well as the downloads folder. Kindly close the issue if your tests work with the latest version.

    The problem was with the port to version 2.3.0. The ThreadedTransactionalGraph's stopTransaction() was correct, but the commit()/rollback() were wrong.

    Link to code changes

  2. Log in to comment