Details
-
Bug
-
Resolution: Cannot Reproduce
-
Critical
-
None
-
None
-
None
Description
The function
lraNarayanaLRAClient.startLRA(...)
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.
for (int i = 0; i < 10; i++) { URI uri = null; uri = lraClient.startLRA(getClass().getCanonicalName() + i); lraClient.closeLRA(uri); }
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.