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

Jun Rao closed KAFKA-531.
-------------------------

    
> kafka.server.ReplicaManager: java.nio.channels.NonWritableChannelException
> --------------------------------------------------------------------------
>
>                 Key: KAFKA-531
>                 URL: https://issues.apache.org/jira/browse/KAFKA-531
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: John Fung
>              Labels: replication-testing
>             Fix For: 0.8
>
>         Attachments: system_test_1348521165.tar.gz
>
>
> 1. Attached file system_test_1348521165.tar.gz contains all the associated 
> log files for this test session.
> 2. The system test output log can be found at: 
> system_test_1348521165/system_test_output.log 
> 3. The following log message can be found at: 
> system_test_1348521165/logs/broker-3/kafka_server_9093.log
> [2012-09-24 14:15:28,955] INFO [Kafka Log on Broker 3], Deleting log segment 
> 00000000000000010241.kafka from test_1-1 (kafka.log.Log)
> [2012-09-24 14:15:28,969] ERROR Replica Manager on Broker 3: Error processing 
> leaderAndISR request LeaderAndIsrRequest(1,,1000,Map((test_1,1) -> { "ISR": 
> "2","leader": "2","leaderEpoch": "3" }, (test_1,0) -> { "ISR": "2","leader": 
> "2","leaderEpoch": "1" })) (kafka.server.ReplicaManager)
> java.nio.channels.NonWritableChannelException
>         at sun.nio.ch.FileChannelImpl.truncate(FileChannelImpl.java:317)
>         at kafka.message.FileMessageSet.truncateTo(FileMessageSet.scala:202)
>         at kafka.log.LogSegment.truncateTo(Log.scala:124)
>         at kafka.log.Log.truncateTo(Log.scala:479)
>         at kafka.cluster.Partition.makeFollower(Partition.scala:171)
>         at kafka.cluster.Partition.makeLeaderOrFollower(Partition.scala:126)
>         at 
> kafka.server.ReplicaManager.kafka$server$ReplicaManager$$makeFollower(ReplicaManager.scala:196)
>         at 
> kafka.server.ReplicaManager$$anonfun$becomeLeaderOrFollower$2.apply(ReplicaManager.scala:154)
>         at 
> kafka.server.ReplicaManager$$anonfun$becomeLeaderOrFollower$2.apply(ReplicaManager.scala:144)
>         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.ReplicaManager.becomeLeaderOrFollower(ReplicaManager.scala:144)
>         at 
> kafka.server.KafkaApis.handleLeaderAndISRRequest(KafkaApis.scala:74)
>         at kafka.server.KafkaApis.handle(KafkaApis.scala:61)
>         at kafka.server.KafkaRequestHandler.run(KafkaRequestHandler.scala:40)
>         at java.lang.Thread.run(Thread.java:662)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to