[jbossts-issues] [JBoss JIRA] (JBTM-3160) Start LRA returns first URI all the time

Matej Kralik (Jira) issues at jboss.org
Tue Jul 23 04:47:00 EDT 2019


Matej Kralik created JBTM-3160:
----------------------------------

             Summary: 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
         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_.




--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jbossts-issues mailing list