Kabir Khan created WFLY-11840:
---------------------------------
Summary: Periodic recovery does not recover XAResource after jvm crash when
agroal subsystem is used
Key: WFLY-11840
URL:
https://issues.jboss.org/browse/WFLY-11840
Project: WildFly
Issue Type: Bug
Components: Agroal, Transactions
Reporter: Ivan Straka
Assignee: Luis Barreiro
Fix For: 17.0.0.Beta1
Scenario:
Halts server at commit phase ...
# enlist TestXA resource
# enlist XA resource
# prepare TestXA resource
# prepare XA resource
# commit Test XA resource
# JVM crash
# recovery started
# commit XA resource
Periodic recovery does not recover xa resource. It looks like agroal subsystem does not
register xa resource to xa recovery module.
Test outcome:
{code:java}
Running org.jboss.as.test.jbossts.crashrec.test.JPACrashRecoveryTestCase
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 109.002 sec <<<
FAILURE! - in org.jboss.as.test.jbossts.crashrec.test.JPACrashRecoveryTestCase
commitHaltSecond(org.jboss.as.test.jbossts.crashrec.test.JPACrashRecoveryTestCase) Time
elapsed: 102.976 sec <<< FAILURE!
java.lang.AssertionError: Incorrect data in database after crash recovery.
expected:<2> but was:<1>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at
org.jboss.as.test.jbossts.crashrec.test.JPABaseCrashRecoveryTestCase.checkAfterTestExecution(JPABaseCrashRecoveryTestCase.java:150)
at
org.jboss.as.test.jbossts.crashrec.test.TestBaseCrashRecovery.commitHaltTest(TestBaseCrashRecovery.java:485)
at
org.jboss.as.test.jbossts.crashrec.test.TestBaseCrashRecovery.commitHaltSecond(TestBaseCrashRecovery.java:418)
at
org.jboss.as.test.jbossts.crashrec.test.JPACrashRecoveryTestCase.commitHaltSecond(JPACrashRecoveryTestCase.java:76)
{code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)