kafka.network.InvalidRequestException: Error getting request for apiKey: 8 and apiVersion: 1

Apache's JIRA Issue Tracker | Magnus Edenhill | 10 months ago
  1. 0

    librdkafka sends a Null Metadata string (size -1) in its OffsetCommitRequests when there is no metadata, this unfortunately leads to an exception on the broker that expects a non-null string. {noformat} [2016-03-11 11:11:57,623] ERROR Closing socket for 10.191.0.33:9092-10.191.0.33:56503 because of error (kafka.network.Processor) kafka.network.InvalidRequestException: Error getting request for apiKey: 8 and apiVersion: 1 at kafka.network.RequestChannel$Request.liftedTree2$1(RequestChannel.scala:91) at kafka.network.RequestChannel$Request.<init>(RequestChannel.scala:88) at kafka.network.Processor$$anonfun$run$11.apply(SocketServer.scala:426) at kafka.network.Processor$$anonfun$run$11.apply(SocketServer.scala:421) at scala.collection.Iterator$class.foreach(Iterator.scala:727) at scala.collection.AbstractIterator.foreach(Iterator.scala:1157) at scala.collection.IterableLike$class.foreach(IterableLike.scala:72) at scala.collection.AbstractIterable.foreach(Iterable.scala:54) at kafka.network.Processor.run(SocketServer.scala:421) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.kafka.common.protocol.types.SchemaException: Error reading field 'topics': Error reading field 'partitions': Error reading field 'metadata': java.lang.NegativeArraySizeException at org.apache.kafka.common.protocol.types.Schema.read(Schema.java:73) at org.apache.kafka.common.requests.OffsetCommitRequest.parse(OffsetCommitRequest.java:260) at org.apache.kafka.common.requests.AbstractRequest.getRequest(AbstractRequest.java:50) at kafka.network.RequestChannel$Request.liftedTree2$1(RequestChannel.scala:88) ... 9 more {noformat}

    Apache's JIRA Issue Tracker | 10 months ago | Magnus Edenhill
    kafka.network.InvalidRequestException: Error getting request for apiKey: 8 and apiVersion: 1
  2. 0

    Broker does not support Null Metadata in OffsetCommit requests

    GitHub | 10 months ago | edenhill
    kafka.network.InvalidRequestException: Error getting request for apiKey: 8 and apiVersion: 1
  3. 0

    GitHub comment 92#231059731

    GitHub | 6 months ago | marshauf
    kafka.network.InvalidRequestException: Error getting request for apiKey: 8 and apiVersion: 2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Sending a produce request with an empty client ID to a 0.9.0.0 broker causes the broker to crash as shown below. More details can be found in the following email thread: http://mail-archives.apache.org/mod_mbox/kafka-users/201601.mbox/%3c5693ECD9.4050400@dspeterson.com%3e [2016-01-10 23:03:44,957] ERROR [KafkaApi-3] error when handling request Name: ProducerRequest; Version: 0; CorrelationId: 1; ClientId: null; RequiredAcks: 1; AckTimeoutMs: 10000 ms; TopicAndPartition: [topic_1,3] -> 37 (kafka.server.KafkaApis) java.lang.NullPointerException at org.apache.kafka.common.metrics.JmxReporter.getMBeanName(JmxReporter.java:127) at org.apache.kafka.common.metrics.JmxReporter.addAttribute(JmxReporter.java:106) at org.apache.kafka.common.metrics.JmxReporter.metricChange(JmxReporter.java:76) at org.apache.kafka.common.metrics.Metrics.registerMetric(Metrics.java:288) at org.apache.kafka.common.metrics.Sensor.add(Sensor.java:177) at org.apache.kafka.common.metrics.Sensor.add(Sensor.java:162) at kafka.server.ClientQuotaManager.getOrCreateQuotaSensors(ClientQuotaManager.scala:209) at kafka.server.ClientQuotaManager.recordAndMaybeThrottle(ClientQuotaManager.scala:111) at kafka.server.KafkaApis.kafka$server$KafkaApis$$sendResponseCallback$2(KafkaApis.scala:353) at kafka.server.KafkaApis$$anonfun$handleProducerRequest$1.apply(KafkaApis.scala:371) at kafka.server.KafkaApis$$anonfun$handleProducerRequest$1.apply(KafkaApis.scala:371) at kafka.server.ReplicaManager.appendMessages(ReplicaManager.scala:348) at kafka.server.KafkaApis.handleProducerRequest(KafkaApis.scala:366) at kafka.server.KafkaApis.handle(KafkaApis.scala:68) at kafka.server.KafkaRequestHandler.run(KafkaRequestHandler.scala:60) at java.lang.Thread.run(Thread.java:745)

    Apache's JIRA Issue Tracker | 1 year ago | Dave Peterson
    org.apache.kafka.common.protocol.types.SchemaException: Error reading field 'client_id': java.lang.NegativeArraySizeException
  6. 0

    Problems with specific-avro-producer

    GitHub | 10 months ago | asnir
    org.apache.kafka.common.protocol.types.SchemaException: Error reading field 'topics': java.nio.BufferUnderflowException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.kafka.common.protocol.types.SchemaException

      Error reading field 'topics': Error reading field 'partitions': Error reading field 'metadata': java.lang.NegativeArraySizeException

      at org.apache.kafka.common.protocol.types.Schema.read()
    2. Apache Kafka
      AbstractRequest.getRequest
      1. org.apache.kafka.common.protocol.types.Schema.read(Schema.java:73)
      2. org.apache.kafka.common.requests.OffsetCommitRequest.parse(OffsetCommitRequest.java:260)
      3. org.apache.kafka.common.requests.AbstractRequest.getRequest(AbstractRequest.java:50)
      3 frames
    3. Apache Kafka
      Processor$$anonfun$run$11.apply
      1. kafka.network.RequestChannel$Request.liftedTree2$1(RequestChannel.scala:88)
      2. kafka.network.RequestChannel$Request.<init>(RequestChannel.scala:88)
      3. kafka.network.Processor$$anonfun$run$11.apply(SocketServer.scala:426)
      4. kafka.network.Processor$$anonfun$run$11.apply(SocketServer.scala:421)
      4 frames
    4. Scala
      AbstractIterable.foreach
      1. scala.collection.Iterator$class.foreach(Iterator.scala:727)
      2. scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
      3. scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      4. scala.collection.AbstractIterable.foreach(Iterable.scala:54)
      4 frames
    5. Apache Kafka
      Processor.run
      1. kafka.network.Processor.run(SocketServer.scala:421)
      1 frame
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame