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

Andy Seaborne commented on JENA-1237:
-------------------------------------

Turns out it is better to send in the fix for this as PR #170; this can be 
reviewed now.

I'll follow it with the promotion code on that PR; the tests for the promotion 
code depend on this fix.


> TIM not isolating transactions at the start
> -------------------------------------------
>
>                 Key: JENA-1237
>                 URL: https://issues.apache.org/jira/browse/JENA-1237
>             Project: Apache Jena
>          Issue Type: Bug
>    Affects Versions: Jena 3.1.0
>            Reporter: Andy Seaborne
>            Assignee: A. Soroka
>         Attachments: ReportTxn.java
>
>
> TIM is not creating the transaction isolation when {{begin(READ)}} is called 
> but on the first operation.
> The attached example has two other-thread actions that differ only in whether 
> the begin is followed by a dataset read action (thread 2) or not (thread 1).  
> This changes the output of otherwise identical actions.
> {{ThreadAction}} takes 3 parts - the first part executes before the 
> {{create}} returns, the second part when {{run}} is called and exceptions 
> captured, the 3rd part is clearup (called during {{run}}).
> Annotated output from the attached program:
> {noformat}
> DatasetGraphInMemory
> thread 1:1 : x=<no count>
> Main       : other1
> thread 2:1 : x=0
> Main       : other2
> Main 1     : x=0
> Main 2     : x=1
> thread 1:2 : x=1          ** Should be zero **
> thread 2:2 : x=0
> TDBDataset
> thread 1:1 : x=<no count>
> Main       : other1
> thread 2:1 : x=0
> Main       : other2
> Main 1     : x=0
> Main 2     : x=1
> thread 1:2 : x=0          ** Correctly zero **
> thread 2:2 : x=0
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to