Andy Seaborne created JENA-1344:
-----------------------------------
Summary: Trasnactions - begin(WRITE);end() should throw an
excepotion.
Key: JENA-1344
URL: https://issues.apache.org/jira/browse/JENA-1344
Project: Apache Jena
Issue Type: Bug
Affects Versions: Jena 3.3.0
Reporter: Andy Seaborne
Assignee: Andy Seaborne
Fix For: Jena 3.4.0
Currently, it logs a warning, and does a silent abort. Instead, it should
abort and then throw an exception - no data is being committed without
inspecting logs, it looks like the transaction was OK when in fact it wasn't.
{noformat}
public static void main(String... args) {
DatasetGraph dsg = DatasetGraphFactory.createTxnMem();
DatasetGraph dsg = TDBFactory.createDatasetGraph();
dsg.begin(ReadWrite.WRITE);
dsg.end();
System.out.println("DONE");
System.exit(0);
}
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)