-
Bug
-
Resolution: Done
-
Major
-
5.10.5.Final
-
None
-
The fix was adjusted with only clearing the flag and not calling {{XAResource#forget}} for the `clearHeuristic` calls which is then used e.g. by WildFly in jboss cli as {{:recover}} call.
The management operation clearHeuristic should consider to clear heuristic flag not only from the transaction (BasicAction) but from the participant record as well - when possible, e.g. the XA resource record maintains heuristic flag for participant and thus it should be cleared on the operation.
The current management operation 'clearHeuristic' is invoked only on the "covering" transaction - BasicAction is modified[1] -> [2] -> [3]. But the XAResourceRecord heuristics state[4] is unchanged. Then during recovery commit retry the XAResource.commit is denied[5].
[1] https://github.com/jbosstm/narayana/blob/5.10.5.Final/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/tools/osb/mbean/ActionBean.java#L433
[2] https://github.com/jbosstm/narayana/blob/5.10.5.Final/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/tools/osb/mbean/ActionBean.java#L295
[3] https://github.com/jbosstm/narayana/blob/5.10.5.Final/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/coordinator/BasicAction.java#L2551
[4] https://github.com/jbosstm/narayana/blob/5.10.5.Final/ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/resources/arjunacore/XAResourceRecord.java#L1320
[5] https://github.com/jbosstm/narayana/blob/5.10.5.Final/ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/resources/arjunacore/XAResourceRecord.java#L463
- is incorporated by
-
WFLY-13740 Upgrade Narayana to 5.10.6.Final
- Closed
- is related to
-
WFLY-13578 Add a testcase for transaction propagation over EJB remote simulating network issues on remote calls
- Closed