[ 
https://issues.apache.org/jira/browse/CAMEL-21774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17929151#comment-17929151
 ] 

Claus Ibsen commented on CAMEL-21774:
-------------------------------------

Health check would be down
{code:java}
~/workspace ❯ camel get health
  PID   NAME      AGE  ID                      RL  STATE    RATE      SINCE    
MESSAGE
 42963  consumer  56s  camel/context            R   UP    109/107/-  0s/54s/-
 42963  consumer  56s  camel/route-controller   R   UP      55/55/-  0s/55s/-
 42963  consumer  56s  camel/consumer:route1    R  DOWN     54/-/54  0s/-/54s  
KafkaConsumer is not ready (gave up recovering and terminated the kafka
                                                                               
consumer; restart route or application to recover). - Error: Topic foobar does
                                                                               
not exists
 42963  consumer  56s  camel/context            L   UP    110/108/-  0s/54s/- 
{code}

> camel-kafka - Add topicMustExists option so consumer can fail if broker has 
> no topic
> ------------------------------------------------------------------------------------
>
>                 Key: CAMEL-21774
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21774
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-kafka
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.11.0
>
>
> You may connect to a kafka broker with a given topic name, and the broker is 
> configured to not auto-create. And the consumer will then fail to subscribe, 
> and keep looping.
> We should have option topicMustExist=true|false you can set so you can tell 
> Camel to fail if the topic does not exist.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to