[
https://issues.apache.org/jira/browse/JENA-1344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16027524#comment-16027524
]
ASF subversion and git services commented on JENA-1344:
-------------------------------------------------------
Commit 106af3a05b0c5bfbe03eb3be32ba3992ec0b06b9 in jena's branch
refs/heads/master from [~andy.seaborne]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=106af3a ]
JENA-1344: Exception on begin(W)-end without commit or abort.
> Transactions - 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)