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

ASF subversion and git services commented on JENA-1527:
-------------------------------------------------------

Commit b9051fced59ec8a78e30ea6f9047b52513f2430d in jena's branch 
refs/heads/master from [~andy.seaborne]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=b9051fc ]

JENA-1527: Merge commit 'refs/pull/402/head' of https://github.com/apache/jena

This closes #402.


> GraphTDB caches prefix map across transactions.
> -----------------------------------------------
>
>                 Key: JENA-1527
>                 URL: https://issues.apache.org/jira/browse/JENA-1527
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: TDB
>    Affects Versions: Jena 3.7.0
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Major
>
> The pattern below causes transaction errors ("BlockMgrJournal not active") 
> because the pmap is carried from trasnaction1 to transaction 2 in the 
> GraphBase cache (member "pm").
> {noformat}
>     Graph g = dsg.getGraph(gn1);
>     Txn.executeWrite(dsg, ()->{
>         // Get, do not use. ** GraphBase caches **
>         PrefixMapping pmap = g.getPrefixMapping();
>     });
>     Txn.executeWrite(dsg, ()-> {
>         PrefixMapping pmap = g.getPrefixMapping();
>         pmap.setNsPrefix("x0", "http:/example/x0#");
>     });
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to