You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ryabov Dmitrii (JIRA)" <ji...@apache.org> on 2017/07/13 12:28:00 UTC
[jira] [Created] (IGNITE-5748) Extend JTA test coverage
Ryabov Dmitrii created IGNITE-5748:
--------------------------------------
Summary: Extend JTA test coverage
Key: IGNITE-5748
URL: https://issues.apache.org/jira/browse/IGNITE-5748
Project: Ignite
Issue Type: Test
Reporter: Ryabov Dmitrii
Priority: Minor
The goal is to have every method of CacheJtaResource called inside tests. Please add tests that will enlist fake XA resources to transaction (to the one enlisted for proper cache tx). You can use this snippet:
{code:java}
jotm.getTransactionManager().getTransaction().enlistResource(new XAResource() {.. });
{code}
We need to do this because with only one resource transaction manager calls commit() without calling prepare(). Therefore, a lot of code is not covered with tests. Please add them and add invocations counters and asserts for them.
[Task source.|https://issues.apache.org/jira/browse/IGNITE-4648?focusedCommentId=16085532&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16085532]
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)