-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Waiting for cdcservice_1 to become healthy #15
Comments
Hi @sundar-cs, thank you for the issue. swagger-ui fixes are here: #14 |
Thanks so much for your response. I presume the UI fix was the static content (classpath:META-INF/static-content/swagger-ui) ? Thanks again. |
Thanks a bunch for your comments in the other 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.
The text was updated successfully, but these errors were encountered: