Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-8624

这边是服务端的kafka,版本是 kafka_2.11-1.0.0.2,当客户端向主题发送消息的时候抛出如下异常,客户端跟服务端的版本不一致吗?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • log
    • Important

    Description

      ERROR [KafkaApi-1004] Error when handling request {replica_id=-1,max_wait_time=10000,min_bytes=0,topics=[{topic=ETE,partitions=[

      {partition=3,fetch_offset=119224671,max_bytes=1048576}

      ]}]} (kafka.server.KafkaApis)
      java.lang.IllegalArgumentException: Magic v0 does not support record headers
      at org.apache.kafka.common.record.MemoryRecordsBuilder.appendWithOffset(MemoryRecordsBuilder.java:403)
      at org.apache.kafka.common.record.MemoryRecordsBuilder.append(MemoryRecordsBuilder.java:586)
      at org.apache.kafka.common.record.AbstractRecords.convertRecordBatch(AbstractRecords.java:134)
      at org.apache.kafka.common.record.AbstractRecords.downConvert(AbstractRecords.java:109)
      at org.apache.kafka.common.record.FileRecords.downConvert(FileRecords.java:253)
      at kafka.server.KafkaApis$$anonfun$kafka$server$KafkaApis$$convertedPartitionData$1$1$$anonfun$apply$4.apply(KafkaApis.scala:519)
      at kafka.server.KafkaApis$$anonfun$kafka$server$KafkaApis$$convertedPartitionData$1$1$$anonfun$apply$4.apply(KafkaApis.scala:517)
      at scala.Option.map(Option.scala:146)
      at kafka.server.KafkaApis$$anonfun$kafka$server$KafkaApis$$convertedPartitionData$1$1.apply(KafkaApis.scala:517)
      at kafka.server.KafkaApis$$anonfun$kafka$server$KafkaApis$$convertedPartitionData$1$1.apply(KafkaApis.scala:507)
      at scala.Option.flatMap(Option.scala:171)
      at kafka.server.KafkaApis.kafka$server$KafkaApis$$convertedPartitionData$1(KafkaApis.scala:507)
      at kafka.server.KafkaApis$$anonfun$kafka$server$KafkaApis$$createResponse$2$1.apply(KafkaApis.scala:555)
      at kafka.server.KafkaApis$$anonfun$kafka$server$KafkaApis$$createResponse$2$1.apply(KafkaApis.scala:554)
      at scala.collection.Iterator$class.foreach(Iterator.scala:891)
      at scala.collection.AbstractIterator.foreach(Iterator.scala:1334)
      at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
      at kafka.server.KafkaApis.kafka$server$KafkaApis$$createResponse$2(KafkaApis.scala:554)
      at kafka.server.KafkaApis$$anonfun$kafka$server$KafkaApis$$fetchResponseCallback$1$1.apply(KafkaApis.scala:568)
      at kafka.server.KafkaApis$$anonfun$kafka$server$KafkaApis$$fetchResponseCallback$1$1.apply(KafkaApis.scala:568)
      at kafka.server.KafkaApis$$anonfun$sendResponseMaybeThrottle$1.apply$mcVI$sp(KafkaApis.scala:2033)
      at kafka.server.ClientRequestQuotaManager.maybeRecordAndThrottle(ClientRequestQuotaManager.scala:54)
      at kafka.server.KafkaApis.sendResponseMaybeThrottle(KafkaApis.scala:2032)
      at kafka.server.KafkaApis.kafka$server$KafkaApis$$fetchResponseCallback$1(KafkaApis.scala:568)
      at kafka.server.KafkaApis$$anonfun$kafka$server$KafkaApis$$processResponseCallback$1$1.apply$mcVI$sp(KafkaApis.scala:587)
      at kafka.server.ClientQuotaManager.maybeRecordAndThrottle(ClientQuotaManager.scala:176)
      at kafka.server.KafkaApis.kafka$server$KafkaApis$$processResponseCallback$1(KafkaApis.scala:586)
      at kafka.server.KafkaApis$$anonfun$handleFetchRequest$3.apply(KafkaApis.scala:603)
      at kafka.server.KafkaApis$$anonfun$handleFetchRequest$3.apply(KafkaApis.scala:603)
      at kafka.server.ReplicaManager.fetchMessages(ReplicaManager.scala:820)
      at kafka.server.KafkaApis.handleFetchRequest(KafkaApis.scala:595)
      at kafka.server.KafkaApis.handle(KafkaApis.scala:99)
      at kafka.server.KafkaRequestHandler.run(KafkaRequestHandler.scala:65)
      at java.lang.Thread.run(Thread.java:748)

      Attachments

        1. 李志涛.jpg
          36 kB
          Zhitao Li(李志涛)
        2. image-2019-07-04-14-56-24-216.png
          197 kB
          Zhitao Li(李志涛)
        3. image-2019-07-04-14-49-47-802.png
          197 kB
          Zhitao Li(李志涛)
        4. image-2019-07-04-00-18-15-781.png
          280 kB
          Zhitao Li(李志涛)

        Activity

          People

            Unassigned Unassigned
            CHARELS CHARELS
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 12h
                12h
                Remaining:
                Remaining Estimate - 12h
                12h
                Logged:
                Time Spent - Not Specified
                Not Specified