Jun Rao 2013-06-25, 16:45
Hargett, Phil 2013-06-25, 17:08
-Re: 0.8 throwing exception "Failed to find leader" and high-level consumer fails to make progress
Jun Rao 2013-06-26, 03:59
The exception is likely due to a race condition btw the logic in ZK watcher
and the closing of ZK connection. It's harmless, except for the weird
On Tue, Jun 25, 2013 at 10:07 AM, Hargett, Phil <
[EMAIL PROTECTED]> wrote:
> I see evidence that its being stopped / started every 30 seconds in same
> cases (due to my code). It's entirely possible that I have a race, too, in
> that 2 separate pieces of code could be triggering such a stop / start.
> Gives me something to track down. Thank you!!
> On Jun 25, 2013, at 12:45 PM, "Jun Rao" <[EMAIL PROTECTED]> wrote:
> > This typically only happens when the consumerConnector is shut down. Are
> > you restarting the consumerConnector often?
> > Thanks,
> > Jun
> > On Tue, Jun 25, 2013 at 9:40 AM, Hargett, Phil <
> > [EMAIL PROTECTED]> wrote:
> >> Seeing this exception a LOT (3-4 times per second, same log topic).
> >> I'm using external code to feed data to about 50 different log topics
> >> a cluster of 3 Kafka 0.8 brokers. There are 3 ZooKeeper instances as
> >> all of this is running on EC2. My application creates a high-level
> >> consumer (1 per topic) to consumer data from each and do further
> >> The problem is this exception is in the high-level consumer, so my code
> >> has no way of knowing that it's become stuck.
> >> This exception does not always appear, but as far as I can tell, once
> >> happens, the only cure is to restart my application's process.
> >> I saw this in 0.8 built from source about 1 week ago, and also am seeing
> >> it today after pulling the latest 0.8 sources and rebuilding Kafka.
> >> Thoughts?
> >> Failed to find leader for Set([topic6,0]):
> >> at org.I0Itec.zkclient.ZkClient$2.call(ZkClient.java:416)
> >> at org.I0Itec.zkclient.ZkClient$2.call(ZkClient.java:413)
> >> at
> >> org.I0Itec.zkclient.ZkClient.retryUntilConnected(ZkClient.java:675)
> >> at org.I0Itec.zkclient.ZkClient.getChildren(ZkClient.java:413)
> >> at org.I0Itec.zkclient.ZkClient.getChildren(ZkClient.java:409)
> >> at
> >> kafka.utils.ZkUtils$.getChildrenParentMayNotExist(ZkUtils.scala:438)
> >> at kafka.utils.ZkUtils$.getAllBrokersInCluster(ZkUtils.scala:75)
> >> at
> >> at
Jun Rao 2013-07-22, 04:53