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

Update LRAAsyncIT to use thread safe logic

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.Final
    • 7.0.2.Final
    • LRA
    • None

      The tests in `LRAAsyncIT` need to be updated with thread-safe logic when handling `lrasToAfterFinish`.

      https://github.com/jbosstm/narayana/blob/9da7020ce86d109fe997cb8006ff8c3d95a71a08/rts/lra/test/basic/src/test/java/io/narayana/lra/arquillian/client/LRAAsyncIT.java#L87
      Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 0
      at java.base/java.util.ArrayList.add(ArrayList.java:455)
      at java.base/java.util.ArrayList.add(ArrayList.java:467)
      at io.narayana.lra.arquillian.client.LRAAsyncIT.lambda$testChainOfInvocations$0(LRAAsyncIT.java:87)

      https://github.com/jbosstm/narayana/blob/1ce3f13b4b21ac5a16afe6ea18f6c2aba043c71e/rts/lra/test/basic/src/test/java/io/narayana/lra/arquillian/client/LRAAsyncIT.java#L123
      Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 0
      at java.base/java.util.ArrayList.add(ArrayList.java:484)
      at java.base/java.util.ArrayList.add(ArrayList.java:496)
      at io.narayana.lra.arquillian.client.LRAAsyncIT.lambda$testNoCurrent$1(LRAAsyncIT.java:123)

              jfinelli@redhat.com Manuel Finelli
              jfinelli@redhat.com Manuel Finelli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: