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

Michael Musgrove (Jira) issues at jboss.org
Sat Oct 26 04:06:00 EDT 2019


     [ https://issues.jboss.org/browse/JBTM-3160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Musgrove closed JBTM-3160.
----------------------------------
    Resolution: Cannot Reproduce


I have just tested this and the reproducer works. Therefore I a closing this issue?

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



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jbossts-issues mailing list