Kafka
  1. Kafka
  2. KAFKA-778

Fix unclear exceptions when the producer detects 0 partitions for a topic

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.7.2, 0.8.0
    • Fix Version/s: None
    • Component/s: producer
    • Labels:

      Description

      ERROR [main][kafka.producer.async.DefaultEventHandler] Failed to collate
      messages by topic, partition due to
      kafka.common.NoBrokersForPartitionException: Partition key = null
      at
      kafka.producer.async.DefaultEventHandler.kafka$producer$async$DefaultEventHandler$$getPartitionListForTopic(DefaultEventHandler.scala:189)
      at
      kafka.producer.async.DefaultEventHandler$$anonfun$partitionAndCollate$1.apply(DefaultEventHandler.scala:148)
      at
      kafka.producer.async.DefaultEventHandler$$anonfun$partitionAndCollate$1.apply(DefaultEventHandler.scala:147)
      at
      scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:60)
      at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
      at
      kafka.producer.async.DefaultEventHandler.partitionAndCollate(DefaultEventHandler.scala:147)
      at
      kafka.producer.async.DefaultEventHandler.dispatchSerializedData(DefaultEventHandler.scala:93)
      at
      kafka.producer.async.DefaultEventHandler.handle(DefaultEventHandler.scala:72)
      at kafka.producer.Producer.send(Producer.scala:76)
      at kafka.javaapi.producer.Producer.send(Producer.scala:41)

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Jun Rao
            Reporter:
            Neha Narkhede
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development