[
https://issues.jboss.org/browse/ISPN-957?page=com.atlassian.jira.plugin.s...
]
Manik Surtani commented on ISPN-957:
------------------------------------
No, we should *always* run with commitOnePhase=false even locally; otherwise you won't
be trapping much.
However, what we *should* do is disable writing tx logs to disk. That is a valid
optimisation for using JBossTS in our test suite.
Make local suite to run with JBossTM
------------------------------------
Key: ISPN-957
URL:
https://issues.jboss.org/browse/ISPN-957
Project: Infinispan
Issue Type: Feature Request
Components: Test Suite, Transactions
Reporter: Mircea Markus
Assignee: Mircea Markus
Fix For: 5.0.0.Final
Suite runs faster with JBossTM (vs DummyTM).
A explanation for JBossTM over performing DummyTM in spite keeping a tx log on the disk
(which dummyTm doesn't) is the fact that it has 2PC optimisations for situations where
only one resource is registered. In other words if there is only one cache participating
in the transaction (most of our tests are like that) there won't be 2RPC but only
one.
It would be good to run the local test suite with JBossTM and
CoordinatorEnvironmentBean.commitOnePhase=true and
CoordinatorEnvironmentBean.commitOnePhase=false on the hudson environment. This would
test transactions better.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira