What is the replication factor and have you checked if there are leader elections around the time you see the NoAvailableLeader exception? It is important to figure out the root cause of NoAvailableLeader, but it is transient and should fix itself. Are you using 0.8 HEAD ?
On Tue, Oct 29, 2013 at 5:57 PM, Jiang Jacky <jiang0...@gmail.com> wrote: > Hi, Everyone > For now, I have a kafka cluster, and there is only 1 partition in each > node. i just also produce lots of messages to 1 topic only. > Then, I have a problem, I used it for a while, the topic is crashed, the > error message is "NoAvailableLeader", but it is good for other topics that > I do not often use. So I have to cleanup the zookeeper cache, and restart > it again, then that topic comes back normal. > Can someone tell me how to fix that? I don't want to clean the zookeeper > sometimes in order to make the topic available. It seems not stable. > Thanks >