zhfeng commented on pull request #3594:
URL: https://github.com/apache/camel-quarkus/pull/3594#issuecomment-1062692677


   Thanks @jamesnetherton ```inject``` method works and I have to create a 
seperate itest for health check since after restarting the kafka container, the 
expose port is changed an that could effect the other tests. Another problem is 
that ```CamelKafkaHeadlthCheckTest``` is forced shutdown after 45 seconds and 
some messages are in the console.
   ```
   [2022-03-09 07:18:33,897] INFO [GroupCoordinator 1]: Assignment received 
from leader for group group1 for generation 3 
(kafka.coordinator.group.GroupCoordinator)
   2022-03-09 15:18:34,371 WARN  [org.apa.kaf.cli.NetworkClient] (Camel 
(camel-1) thread #1 - KafkaIdempotentRepository) [Consumer 
clientId=consumer-f3da817a-2ae2-421d-9ee2-a681fa690cd8-1, 
groupId=f3da817a-2ae2-421d-9ee2-a681fa690cd8] Connection to node 1 
(localhost/127.0.0.1:49304) could not be established. Broker may not be 
available.
   2022-03-09 15:18:34,395 WARN  [org.apa.kaf.cli.NetworkClient] 
(kafka-producer-network-thread | producer-1) [Producer clientId=producer-1] 
Connection to node 1 (localhost/127.0.0.1:49304) could not be established. 
Broker may not be available.
   2022-03-09 15:18:34,395 WARN  [org.apa.kaf.cli.NetworkClient] (Camel 
(camel-1) thread #4 - KafkaConsumer[test-serializer]) [Consumer 
clientId=consumer-b1175d36-83d9-4b8d-b6fe-33abb5b11194-4, 
groupId=b1175d36-83d9-4b8d-b6fe-33abb5b11194] Connection to node 1 
(localhost/127.0.0.1:49304) could not be established. Broker may not be 
available.
   2022-03-09 15:18:34,396 WARN  [org.apa.kaf.cli.NetworkClient] 
(kafka-producer-network-thread | producer-3) [Producer clientId=producer-3] 
Connection to node 1 (localhost/127.0.0.1:49304) could not be established. 
Broker may not be available.
   2022-03-09 15:18:34,396 WARN  [org.apa.kaf.cli.NetworkClient] (Camel 
(camel-1) thread #2 - KafkaConsumer[inbound]) [Consumer 
clientId=consumer-f3ebe1d2-50e8-430e-a10b-152e8a76fb66-2, 
groupId=f3ebe1d2-50e8-430e-a10b-152e8a76fb66] Connection to node 1 
(localhost/127.0.0.1:49304) could not be established. Broker may not be 
available.
   2022-03-09 15:18:34,396 WARN  [org.apa.kaf.cli.NetworkClient] 
(kafka-producer-network-thread | producer-2) [Producer clientId=producer-2] 
Connection to node 1 (localhost/127.0.0.1:49304) could not be established. 
Broker may not be available.
   2022-03-09 15:18:34,396 WARN  [org.apa.kaf.cli.NetworkClient] (Camel 
(camel-1) thread #5 - KafkaConsumer[test-propagation]) [Consumer 
clientId=consumer-98631eec-73c3-4235-914c-0d009149513a-5, 
groupId=98631eec-73c3-4235-914c-0d009149513a] Connection to node 1 
(localhost/127.0.0.1:49304) could not be established. Broker may not be 
available.
   2022-03-09 15:18:34,396 WARN  [org.apa.kaf.cli.NetworkClient] (Camel 
(camel-1) thread #9 - KafkaConsumer[manual-commit-topic]) [Consumer 
clientId=consumer-group1-7, groupId=group1] Connection to node 1 
(localhost/127.0.0.1:49304) could not be established. Broker may not be 
available.
   2022-03-09 15:18:34,495 WARN  [org.apa.kaf.cli.NetworkClient] 
(kafka-producer-network-thread | producer-1) [Producer clientId=producer-1] 
Connection to node 1 (localhost/127.0.0.1:49304) could not be established. 
Broker may not be available.
   2022-03-09 15:18:34,495 WARN  [org.apa.kaf.cli.NetworkClient] (Camel 
(camel-1) thread #4 - KafkaConsumer[test-serializer]) [Consumer 
clientId=consumer-b1175d36-83d9-4b8d-b6fe-33abb5b11194-4, 
groupId=b1175d36-83d9-4b8d-b6fe-33abb5b11194] Connection to node 1 
(localhost/127.0.0.1:49304) could not be established. Broker may not be 
available.
   2022-03-09 15:18:34,496 WARN  [org.apa.kaf.cli.NetworkClient] (Camel 
(camel-1) thread #9 - KafkaConsumer[manual-commit-topic]) [Consumer 
clientId=consumer-group1-7, groupId=group1] Connection to node 1 
(localhost/127.0.0.1:49304) could not be established. Broker may not be 
available.
   2022-03-09 15:18:34,496 WARN  [org.apa.kaf.cli.NetworkClient] (Camel 
(camel-1) thread #5 - KafkaConsumer[test-propagation]) [Consumer 
clientId=consumer-98631eec-73c3-4235-914c-0d009149513a-5, 
groupId=98631eec-73c3-4235-914c-0d009149513a] Connection to node 1 
(localhost/127.0.0.1:49304) could not be established. Broker may not be 
available.
   2022-03-09 15:18:34,496 WARN  [org.apa.kaf.cli.NetworkClient] 
(kafka-producer-network-thread | producer-3) [Producer clientId=producer-3] 
Connection to node 1 (localhost/127.0.0.1:49304) could not be established. 
Broker may not be available.
   2022-03-09 15:18:34,496 WARN  [org.apa.kaf.cli.NetworkClient] 
(kafka-producer-network-thread | producer-2) [Producer clientId=producer-2] 
Connection to node 1 (localhost/127.0.0.1:49304) could not be established. 
Broker may not be available.
   
   ```
   
   I just add ```camel.main.shutdownTimeout``` with ```10``` in 
```KafkaHealthCheckProfile``` but it seems not work. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to