-
Task
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
None
-
Undefined
There is currently no way how to replace or remove LRA participant from the LRA processing in case the LRA was decided to close or cancel.
The participant could be removed from the LRA when LRA was not yet finished with leaveLRA method of the LRA Coordinator (https://github.com/jbosstm/narayana/blob/5.10.6.Final/rts/lra/lra-coordinator-jar/src/main/java/io/narayana/lra/coordinator/api/Coordinator.java#L534).
The LRA RecoveryCoordinator has got a prepared method replaceCompensator (https://github.com/jbosstm/narayana/blob/5.10.6.Final/rts/lra/lra-coordinator-jar/src/main/java/io/narayana/lra/coordinator/api/RecoveryCoordinator.java#L115). But this method cannot be used as there is no JAX-RS binding for parameter (newCompensatorUrl) - aka. the functionality does not work and is not tested while the recovery coordinator API provides information there is such a method.
When the compensator replacement is permitted it could be considered to provide a way to forcibly remove the LRA participant despite the LRA was closed/cancelled.
NOTE: This is maybe rather a bug than a task depending on what is resolution for the scope of this issue.
- relates to
-
JBTM-3395 NarayanaLRAClientIT#testGetAllLRAs started to fail
- Closed