[infinispan-issues] [JBoss JIRA] (ISPN-2077) Conflicting transactions are not properly aborted on non-transactional caches that use batching (DummyTransaction)

Adrian Nistor (JIRA) jira-events at lists.jboss.org
Wed May 30 09:34:17 EDT 2012


     [ https://issues.jboss.org/browse/ISPN-2077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Nistor updated ISPN-2077:
--------------------------------

    Attachment: DummyTxTest.java


This unit test reproduces the issue.
                
> Conflicting transactions are not properly aborted on non-transactional caches that use batching (DummyTransaction)
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: ISPN-2077
>                 URL: https://issues.jboss.org/browse/ISPN-2077
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Transactions
>    Affects Versions: 5.1.5.FINAL
>         Environment: jdk 1.6.0_32, Fedora 16
>            Reporter: Adrian Nistor
>            Assignee: Adrian Nistor
>            Priority: Minor
>         Attachments: DummyTxTest.java
>
>
> Transaction manager silently aborts transaction commit due to write skew conflicts with other concurrent TX but does not throw RollbackException from TransactionManager.commit() as mandated by JTA spec. This only happens for a non-transactional cache. Tx for non-transactional caches are supported via DummyTransactionManager/DummyTransaction which seems to behave quite differently than JBoss TM and the JTA spec.
> I've done a simple test. One non-transactional cache with batching, optimistic locking, simple versioning and write skew check. I use explicit manual transaction demarcation. N threads attempt to remove the same key concurrently and I count how many succeeded to remove (ie. remove(key,value) returned true) and also commit the TX successfully. I expect 1 but it turns out there are more successes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list