You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Joel Koshy (JIRA)" <ji...@apache.org> on 2012/08/14 20:19:38 UTC

[jira] [Updated] (KAFKA-434) IllegalMonitorStateException in ReplicaManager.makerFollower

     [ https://issues.apache.org/jira/browse/KAFKA-434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joel Koshy updated KAFKA-434:
-----------------------------

    Labels: bugs  (was: )
    
> IllegalMonitorStateException in ReplicaManager.makerFollower
> ------------------------------------------------------------
>
>                 Key: KAFKA-434
>                 URL: https://issues.apache.org/jira/browse/KAFKA-434
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 0.8
>            Reporter: Jun Rao
>              Labels: bugs
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> Saw the following exception in kafka.server.LeaderElectionTest. It seems that the lock may not be acquired before unlocking.
> java.lang.IllegalMonitorStateException
> 	at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:127)
> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1175)
> 	at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:431)
> 	at kafka.server.ReplicaManager.makeFollower(ReplicaManager.scala:233)
> 	at kafka.server.KafkaServer.makeFollower(KafkaServer.scala:164)
> 	at kafka.server.KafkaServer$$anonfun$startup$7.apply(KafkaServer.scala:101)
> 	at kafka.server.KafkaServer$$anonfun$startup$7.apply(KafkaServer.scala:101)
> 	at kafka.server.KafkaApis$$anonfun$handleLeaderAndISRRequest$2.apply(KafkaApis.scala:99)
> 	at kafka.server.KafkaApis$$anonfun$handleLeaderAndISRRequest$2.apply(KafkaApis.scala:74)
> 	at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:80)
> 	at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:80)
> 	at scala.collection.Iterator$class.foreach(Iterator.scala:631)
> 	at scala.collection.mutable.HashTable$$anon$1.foreach(HashTable.scala:161)
> 	at scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:194)
> 	at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:39)
> 	at scala.collection.mutable.HashMap.foreach(HashMap.scala:80)
> 	at kafka.server.KafkaApis.handleLeaderAndISRRequest(KafkaApis.scala:74)
> 	at kafka.server.KafkaApis.handle(KafkaApis.scala:62)
> 	at kafka.server.KafkaRequestHandler.run(KafkaRequestHandler.scala:38)
> 	at java.lang.Thread.run(Thread.java:637)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira