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

New producer hangs in a loop detecting metadata for auto created topics

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.2.0
    • Component/s: producer
    • Labels:
      None

      Description

      New producer hangs in a loop detecting metadata for auto created topics -

      java.lang.IllegalStateException: No known nodes.
      at kafka.common.Cluster.nextNode(Cluster.java:97)
      at kafka.clients.producer.internals.Sender.maybeMetadataRequest(Sender.java:154)
      at kafka.clients.producer.internals.Sender.run(Sender.java:120)
      at kafka.clients.producer.internals.Sender.run(Sender.java:84)
      at java.lang.Thread.run(Thread.java:695)
      java.lang.IllegalStateException: No known nodes.
      at kafka.common.Cluster.nextNode(Cluster.java:97)
      at kafka.clients.producer.internals.Sender.maybeMetadataRequest(Sender.java:154)
      at kafka.clients.producer.internals.Sender.run(Sender.java:120)
      at kafka.clients.producer.internals.Sender.run(Sender.java:84)
      at java.lang.Thread.run(Thread.java:695)
      java.lang.IllegalStateException: No known nodes.
      at kafka.common.Cluster.nextNode(Cluster.java:97)
      at kafka.clients.producer.internals.Sender.maybeMetadataRequest(Sender.java:154)
      at kafka.clients.producer.internals.Sender.run(Sender.java:120)
      at kafka.clients.producer.internals.Sender.run(Sender.java:84)
      at java.lang.Thread.run(Thread.java:695)
      java.lang.IllegalStateException: No known nodes.
      at kafka.common.Cluster.nextNode(Cluster.java:97)
      at kafka.clients.producer.internals.Sender.maybeMetadataRequest(Sender.java:154)
      at kafka.clients.producer.internals.Sender.run(Sender.java:120)
      at kafka.clients.producer.internals.Sender.run(Sender.java:84)
      at java.lang.Thread.run(Thread.java:695)
      java.lang.IllegalStateException: No known nodes.
      at kafka.common.Cluster.nextNode(Cluster.java:97)
      at kafka.clients.producer.internals.Sender.maybeMetadataRequest(Sender.java:154)
      at kafka.clients.producer.internals.Sender.run(Sender.java:120)
      at kafka.clients.producer.internals.Sender.run(Sender.java:84)
      at java.lang.Thread.run(Thread.java:695)
      java.lang.IllegalStateException: No known nodes.
      at kafka.common.Cluster.nextNode(Cluster.java:97)
      at kafka.clients.producer.internals.Sender.maybeMetadataRequest(Sender.java:154)
      at kafka.clients.producer.internals.Sender.run(Sender.java:120)
      at kafka.clients.producer.internals.Sender.run(Sender.java:84)
      at java.lang.Thread.run(Thread.java:695)

      The producer needs to be restarted to start sending data to the auto created topic

        Attachments

        1. KAFKA-1238-v1.patch
          11 kB
          Jay Kreps
        2. KAFKA-1238.patch
          0.9 kB
          Jay Kreps

          Activity

            People

            • Assignee:
              jkreps Jay Kreps
              Reporter:
              nehanarkhede Neha Narkhede
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: