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

Investigate the behaviour of LRA when timeout is triggered early

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 7.0.2.Final
    • LRA
    • None

      I noticed a timing issue when running the testTimeout test of the LRATest.
      the coordinator logged:

      Sep 11, 2024 10:54:37 AM io.narayana.lra.client.NarayanaLRAClient enlistCompensator
      ERROR: LRA025008: Too late to join with the LRA 'http://localhost:8081/lra-coordinator/0_ffffac1c03f5_8af1_66e176ea_2', coordinator response: ''
      Sep 11, 2024 10:54:37 AM io.narayana.lra.filter.ServerLRAFilter abortWith
      WARN: LRA025014: reason 'WebApplicationException: http://localhost:8081/lra-coordinator/0_ffffac1c03f5_8af1_66e176ea_2': container request for method 'io.narayana.lra.coordinator.domain.model.LRATestBase$Participant#timeLimit': lra: 'http://localhost:8081/lra-coordinator/0_ffffac1c03f5_8af1_66e176ea_2'
      Sep 11, 2024 10:54:37 AM io.narayana.lra.client.NarayanaLRAClient endLRA
      WARN: LRA025004: LRA finished with an unexpected status code: 412, coordinator response 'http://localhost:8081/lra-coordinator/0_ffffac1c03f5_8af1_66e176ea_2: LRA is closing or closed: endLRA'
      Sep 11, 2024 10:54:37 AM io.narayana.lra.filter.ServerLRAFilter filter
      WARN: LRA025025: Unable to process LRA annotations: 2-58: JoinFailed (http://localhost:8081/lra-coordinator/0_ffffac1c03f5_8af1_66e176ea_2), CancelFailed (http://localhost:8081/lra-coordinator/0_ffffac1c03f5_8af1_66e176ea_2: LRA025004: LRA finished with an unexpected status code: 412, coordinator response 'http://localhost:8081/lra-coordinator/0_ffffac1c03f5_8af1_66e176ea_2: LRA is closing or closed: endLRA') (Started (start succeeded))'
      

      I could reproduce (sometimes) it when setting the timeLimit (https://github.com/jbosstm/narayana/blob/eb778412de230afc4687a2df43641280494156c5/rts/lra/coordinator/src/test/java/io/narayana/lra/coordinator/domain/model/LRATestBase.java#L105) to 50

              rh-ee-msappegr Marco Sappe Griot
              rh-ee-msappegr Marco Sappe Griot
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: