[
https://issues.apache.org/jira/browse/JENA-1237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15527270#comment-15527270
]
ASF subversion and git services commented on JENA-1237:
-------------------------------------------------------
Commit cc2c4bd54c15b958dede6b4e83e6ee440a3157c8 in jena's branch
refs/heads/master from [~andy.seaborne]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=cc2c4bd ]
JENA-1237: Capture transaction snapshot during begin.
> 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)