Artur Denysenko created KAFKA-1460:
--------------------------------------

             Summary: NoReplicaOnlineException: No replica for partition
                 Key: KAFKA-1460
                 URL: https://issues.apache.org/jira/browse/KAFKA-1460
             Project: Kafka
          Issue Type: Bug
    Affects Versions: 0.8.1.1
            Reporter: Artur Denysenko


We have a standalone kafka server.
After several days of running we get:

{noformat}
kafka.common.NoReplicaOnlineException: No replica for partition [gk.q.module,1] 
is alive. Live brokers are: [Set()], Assigned replicas are: [List(0)]
        at 
kafka.controller.OfflinePartitionLeaderSelector.selectLeader(PartitionLeaderSelector.scala:61)
        at 
kafka.controller.PartitionStateMachine.electLeaderForPartition(PartitionStateMachine.scala:336)
        at 
kafka.controller.PartitionStateMachine.kafka$controller$PartitionStateMachine$$handleStateChange(PartitionStateMachine.scala:185)
        at 
kafka.controller.PartitionStateMachine$$anonfun$triggerOnlinePartitionStateChange$3.apply(PartitionStateMachine.scala:99)
        at 
kafka.controller.PartitionStateMachine$$anonfun$triggerOnlinePartitionStateChange$3.apply(PartitionStateMachine.scala:96)
        at 
scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:743)
        at 
scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:95)
        at 
scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:95)
        at scala.collection.Iterator$class.foreach(Iterator.scala:772)
        at 
scala.collection.mutable.HashTable$$anon$1.foreach(HashTable.scala:157)
        at 
scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:190)
        at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:45)
        at scala.collection.mutable.HashMap.foreach(HashMap.scala:95)
        at 
scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:742)
        at 
kafka.controller.PartitionStateMachine.triggerOnlinePartitionStateChange(PartitionStateMachine.scala:96)
        at 
kafka.controller.PartitionStateMachine.startup(PartitionStateMachine.scala:68)
        at 
kafka.controller.KafkaController.onControllerFailover(KafkaController.scala:312)
        at 
kafka.controller.KafkaController$$anonfun$1.apply$mcV$sp(KafkaController.scala:162)
        at 
kafka.server.ZookeeperLeaderElector.elect(ZookeeperLeaderElector.scala:63)
        at 
kafka.controller.KafkaController$SessionExpirationListener$$anonfun$handleNewSession$1.apply$mcZ$sp(KafkaController.scala:1068)
        at 
kafka.controller.KafkaController$SessionExpirationListener$$anonfun$handleNewSession$1.apply(KafkaController.scala:1066)
        at 
kafka.controller.KafkaController$SessionExpirationListener$$anonfun$handleNewSession$1.apply(KafkaController.scala:1066)
        at kafka.utils.Utils$.inLock(Utils.scala:538)
        at 
kafka.controller.KafkaController$SessionExpirationListener.handleNewSession(KafkaController.scala:1066)
        at org.I0Itec.zkclient.ZkClient$4.run(ZkClient.java:472)
        at org.I0Itec.zkclient.ZkEventThread.run(ZkEventThread.java:71)
{noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to