[jbossts-issues] [JBoss JIRA] (JBTM-3082) Coordinator reports LRA as compensating when the participant is not able to finish complete method invocation immediately
Martin Stefanko (Jira)
issues at jboss.org
Thu Nov 29 09:56:00 EST 2018
Martin Stefanko created JBTM-3082:
-------------------------------------
Summary: Coordinator reports LRA as compensating when the participant is not able to finish complete method invocation immediately
Key: JBTM-3082
URL: https://issues.jboss.org/browse/JBTM-3082
Project: JBoss Transaction Manager
Issue Type: Bug
Components: LRA
Affects Versions: 5.9.0.Final
Reporter: Martin Stefanko
Assignee: Michael Musgrove
If the participant cannot finish the complete method invocation immediately and thus returns 202 ACCEPTED return code and then somebody calls get status of the finishing LRA, the coordinator reports it as CompensatorStatus.Compensating instead of CompensatorStatus.Completing.
The status of the finishing LRA is changed to Compensating here [1] possibly because of this line [2] as heuristicList is not empty.
[1] https://github.com/jbosstm/narayana/blob/master/rts/lra/lra-coordinator/src/main/java/io/narayana/lra/coordinator/domain/model/Transaction.java#L404
[2] https://github.com/jbosstm/narayana/blob/master/rts/lra/lra-coordinator/src/main/java/io/narayana/lra/coordinator/domain/model/LRARecord.java#L387
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jbossts-issues
mailing list