Open sundar-cs opened 2 years ago
Hi @sundar-cs, thank you for the issue.
swagger-ui fixes are here: https://github.com/eventuate-examples/eventuate-micronaut-examples-customers-and-orders/pull/14 Also I added fixes for kafka ports and some tests to that PR. You can apply similar changes or wait until merge. However, problem with specified DOCKER_HOST_IP variable I was not able to reproduce, please make sure that you are using correct host ip.
Thanks so much for your response. Also thanks for confirming the Kafka 29092 fix (item 1 above) I tried with your development branch (https://github.com/dartartem/eventuate-micronaut-examples-customers-and-orders/tree/development) and the UI is also working perfectly well.
I presume the UI fix was the static content (classpath:META-INF/static-content/swagger-ui) ? I don't want to cross link the issues but can you please let me know why a similar quick fix that I tried for https://github.com/eventuate-tram-examples/eventuate-tram-examples-micronaut-customers-and-orders/issues/31 did not yield the same effect ? (possibly needs more fixes in addition to this but just wanted to confirm)
Thanks again.
Thanks a bunch for your comments in the other thread. The issue was eventuateUtilVersion=0.12.0.RELEASE (my version had 0.10.0) I have updated the comments in that thread.
Thanks a lot for your help with all the issues.
(1) While trying out this example it was observed that the CDC service never comes up. The command executed is ./gradlew mysqlbinlogComposeUp
These messages show up in docker logs (docker logs eventuate-micronaut-examples-customers-and-orders-master_cdcservice_1):
2021-11-28 10:26:47.295 WARN 6 --- [ Thread-9] org.apache.kafka.clients.NetworkClient : [Consumer clientId=consumer-1, groupId=ff7366c3-9c7c-4875-93eb-a1b397748fe3] Connection to node 1001 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.
Tried export DOCKER_HOST_IP=a.b.c.d also, but the behavior was the same.
However after fixing docker-compose-eventuate-local-mysql.yml to have EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:29092 (as against 9092), the CDC service comes up properly, the kafka topic got created and the curl commands to create customer and order and the commands to retrieve the order are all successful
docker exec -t eventuate-micronaut-examples-customers-and-orders-master_kafka_1 kafka-topics --list --zookeeper zookeeper:2181
confluent.support.metrics consumer_offsets net.chrisrichardson.eventstore.examples.customersandorders.customersservice.backend.Customer net.chrisrichardson.eventstore.examples.customersandorders.ordersservice.backend.Order offset.storage.topic
(or docker exec -it eventuate-micronaut-examples-customers-and-orders-master_kafka_1 bash kafka-topics --list --zookeeper zookeeper:2181 )
(2) Even though the curl commands work well as mentioned above, the UI does not come up and curl localhost:8081/swagger-ui/index.html also gives 404 error (also 8082 & 8083) Does it need any changes in the swagger definitions in application.yml ?
I would appreciate it if you could comment on item 1 above and also on the fixes needed for item 2. Thanks a bunch.