]
Matej Kralik commented on JBTM-3160:
------------------------------------
Yes, I have just tested it with the latest lra-coordinator (5.10.0.Final-SNAPSHOT) and the
issue is gone. Thanks
Start LRA returns first URI all the time
----------------------------------------
Key: JBTM-3160
URL:
https://issues.jboss.org/browse/JBTM-3160
Project: JBoss Transaction Manager
Issue Type: Bug
Components: LRA
Reporter: Matej Kralik
Assignee: Michael Musgrove
Priority: Critical
Attachments: reporoducer-source.zip, reproducer.jar
The function {code:java}lraNarayanaLRAClient.startLRA(...){code} doesn't return the
new URI but the URI of the first transaction all the time even though the first
transaction is already closed. This happens only with coordinator 5.9.6-SNAPSHOT. For
coordinator 5.9.5-Final, the function returns new URI all the time.
So when I run this code more times, the function returns the same URI all the time. In
the second iteration, the URI which is returned from the startLRA() is the same as in the
first iteration. That transaction is already closed so the closeLRA() failed.
{code:java}
for (int i = 0; i < 10; i++) {
URI uri = null;
uri = lraClient.startLRA(getClass().getCanonicalName() + i);
lraClient.closeLRA(uri);
}
{code}
I uploaded reproducer for it. It is spring boot application which compares returned URI
from the startLRA() and the URI which is on the `http://localhost:8080/lra-coordinator`
For debugging, just import source project to IDE (I use Intelij IDEA) and run/debug
_TestingApplication_.