[ 
https://issues.apache.org/jira/browse/JENA-1344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16027529#comment-16027529
 ] 

ASF GitHub Bot commented on JENA-1344:
--------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/jena/pull/252


> 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)

Reply via email to