so far I could able be think create KafkaConsumerActor in Supervisor with supervisor strategy and use same with Consumer.committableExternalSource
val consumer: ActorRef = context.actorOf(KafkaConsumerActor.props(consumerSettings)) Thanks Arun On Thursday, December 22, 2016 at 10:59:12 AM UTC+5:30, Arun wrote: > > Hi, > > I am using Akka Kafka stream ( > http://doc.akka.io/docs/akka-stream-kafka/current/home.html) to stream > messages from Kafka, if Kafka server is down, I starting getting following > error: > > Consumer interrupted with WakeupException after timeout. Message: null. > Current value of akka.kafka.consumer.wakeup-timeout is 3000 milliseconds > > Message [akka.kafka.KafkaConsumerActor$Internal$Stop$] from > Actor[akka://processor/deadLetters] to Actor[akka://processor/deadLetters] > to Actor[akka://processor/system/kafka-consumer-1#317821720] was not > delivered. [1] dead > > The current wakeup-timeout and max-wakeups are: > > wakeup-timeout = 3s > > # After exceeding maxinum wakeups the consumer will stop and the stage will > fail. > max-wakeups = 10 > > > How I can stop the actor system if it is not able to connect Kafka server > after 10 wakeups. > > > Thanks & Regards, > > Arun > > > > > > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.