Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-3396

LRA RecoveryCoordinator should provide a way to replace/remove participant

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major 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.

            rhn-engineering-mmusgrov Michael Musgrove
            ochaloup@redhat.com Ondrej Chaloupka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: