Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.18.0
-
None
-
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/