Kafka
  1. Kafka
  2. KAFKA-531

kafka.server.ReplicaManager: java.nio.channels.NonWritableChannelException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: None

      Description

      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)

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            John Fung
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development