Can anyone please update on this?

Thanks
Achintya

-----Original Message-----
From: Ghosh, Achintya (Contractor) [mailto:achintya_gh...@comcast.com] 
Sent: Friday, January 20, 2017 3:15 PM
To: users@kafka.apache.org
Subject: Messages are lost

Hi there,

I see the below exception in one of my node's log( cluster with 3 nodes)  and 
then the node is stopped to responding(it's hung state , I mean if I do 
ps-ef|grep kafka , I see the Kafka process but it is not responding) and we 
lost around 100 messages:


1.       What could be the reason for this exception ? My broker ID is unique 
so what is the solution for this issue?

[2017-01-19 15:56:23,644] ERROR Error handling event ZkEvent[New session event 
sent to kafka.server.KafkaHealthcheck$SessionExpireListener@2d74e7af] 
(org.I0Itec.zkclient.ZkEventThread)
java.lang.RuntimeException: A broker is already registered on the path 
/brokers/ids/2. This probably indicates that you either have configured a 
brokerid that is already in use, or else you have shutdown this broker and 
restarted it faster than the zookeeper timeout so it appears to be 
re-registering.
                at kafka.utils.ZkUtils.registerBrokerInZk(ZkUtils.scala:305)
                at kafka.utils.ZkUtils.registerBrokerInZk(ZkUtils.scala:291)
                at 
kafka.server.KafkaHealthcheck.register(KafkaHealthcheck.scala:70)
                at 
kafka.server.KafkaHealthcheck$SessionExpireListener.handleNewSession(KafkaHealthcheck.scala:104)
                at org.I0Itec.zkclient.ZkClient$6.run(ZkClient.java:735)
                at org.I0Itec.zkclient.ZkEventThread.run(ZkEventThread.java:71)



2.       As we lost 100 messages for each topic and I don't see any exception 
in our application log, so how we can track the exception and will make sure 
the we'll not loose any data(consumer end).

Thanks
Achintya

Reply via email to