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

Print warning with cause when AfterLRA call does not proceed well

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 5.12.1.Final
    • 5.12.0.Final
    • LRA
    • None

      Change the logging of the error during AfterLRA call from coordinator. Currently it's hidden under debug without the whole stacktrace. When an error happens then it's "invisible" without details. When the call goes wrong then it leads to an unrecoverable LRA records -
      (afterLRARequest returns false and the TwoPhaseOutcome.HEURISTIC_HAZARD is returned, see the initial call at https://github.com/jbosstm/narayana/blob/5.12.0.Final/rts/lra/coordinator/src/main/java/io/narayana/lra/coordinator/domain/model/LRAParticipantRecord.java#L504
      -> https://github.com/jbosstm/narayana/blob/5.12.0.Final/rts/lra/coordinator/src/main/java/io/narayana/lra/coordinator/domain/model/LRAParticipantRecord.java#L511
      (return report ? reportFailure(lraStatus.name()) : TwoPhaseOutcome.HEURISTIC_HAZARD).

      The reason for the LRA to be unrecoverable is difficult to find without debugging or trace logging.

            ochaloup@redhat.com Ondrej Chaloupka (Inactive)
            ochaloup@redhat.com Ondrej Chaloupka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: