]
Brian Stansberry updated WFLY-11214:
------------------------------------
Fix Version/s: 16.0.0.CR1
(was: 16.0.0.Beta1)
Periodic recovery does not recover XAResource after jvm crash when
agroal subsystem is used
-------------------------------------------------------------------------------------------
Key: WFLY-11214
URL:
https://issues.jboss.org/browse/WFLY-11214
Project: WildFly
Issue Type: Bug
Components: Agroal, Transactions
Reporter: Ivan Straka
Assignee: Luis Barreiro
Priority: Critical
Fix For: 16.0.0.CR1
Attachments: JPACrashRecoveryTestCase_commitHaltSecond_jta_server.log,
JPACrashRecoveryTestCase_commitHaltSecond_jts_server.log
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}