Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18286

[Camel Spring Boot] camel-lra-starter needs camel-servlet-starter to work

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      Despite the documentation says that the necessary dependencies are camel-lra-starter and camel-undertow-starter, camel-servlet-starter dependecy is necessary to make the saga works as expected.

      To reproduce the error:

      1) start Narayana LRA Coordinator on port 8888

      docker run --network host -e QUARKUS_HTTP_PORT=8888 -e LOG_LEVEL=INFO --rm docker.io/jbosstm/lra-coordinator:latest
      

      2) start attached application

      mvn spring-boot:run
      

       
      looking at the transactions at http://localhost:8888/lra-coordinator/ we will see that all the transactions will be in "Closing" status, I expected no transactions here (all completed/compensated)

      The issue is that the REST endpoint are not exposed by the camel-lra component so the LRA cannot be completed by the LRA Coordinator (it is possible to see WARN log in the container log)

      The workaround is adding camel-servlet-starter dependency

      3) start application with the dependency:

      mvn spring-boot:run -Pworkaround
      

      now there are no "Closing" transactions at http://localhost:8888/lra-coordinator/

      Attachments

        1. saga-lra.zip
          8 kB
          Marco Carletti

        Activity

          People

            davsclaus Claus Ibsen
            mcarlett Marco Carletti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: