You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2017/05/26 12:36:04 UTC

[jira] [Issue Comment Deleted] (JENA-1344) Transactions - begin(WRITE);end() should throw an excepotion.

     [ https://issues.apache.org/jira/browse/JENA-1344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne updated JENA-1344:
--------------------------------
    Comment: was deleted

(was: GitHub user afs opened a pull request:

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

    JENA-1344: Fuseki improvements

    This is some general cleaning up in preparing for moving  sparql.org over use Fuseki2.
    
    The main feature added is static file support for embedded Fuseki.
    
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/afs/jena fuseki-improvements

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/jena/pull/254.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #254
    
----
commit 9a0294f5dcd6522d7957cb6ae210254c86f4ad4f
Author: Andy Seaborne <an...@apache.org>
Date:   2017-05-25T21:14:28Z

    Valdiators for jSN or HTML output.
    
    Include text validators from Fuseki1.
    Convert validators to work as functions.
    Include a top level dispatch to HTML or JSON.

commit 56b2e96e20d85945da813b21f9e7a2cff50af0e4
Author: Andy Seaborne <an...@apache.org>
Date:   2017-05-26T12:10:14Z

    Comment tidying.

commit feb5e58c348539af5e8579d0d3b8a386d3376bad
Author: Andy Seaborne <an...@apache.org>
Date:   2017-05-26T12:10:30Z

    Default to empty dataset.

commit 5a2a1bcc0e124e6335b32e993faca5970c205fbb
Author: Andy Seaborne <an...@apache.org>
Date:   2017-05-26T12:11:49Z

    MIME type for static files.

commit f75bf1473b5cee79f5ce20adb3e87bedc892b962
Author: Andy Seaborne <an...@apache.org>
Date:   2017-05-26T12:16:24Z

    JENA-1347: Static file area support for embedded Fuseki.

----
)

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