java.lang.IllegalStateException: No entry found for node -2

Apache's JIRA Issue Tracker | Bhavesh Mistry | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.IllegalStateException

    No entry found for node -2

    at org.apache.kafka.clients.ClusterConnectionStates.nodeState()
  2. Apache Kafka
    Sender.run
    1. org.apache.kafka.clients.ClusterConnectionStates.nodeState(ClusterConnectionStates.java:110)
    2. org.apache.kafka.clients.ClusterConnectionStates.disconnected(ClusterConnectionStates.java:99)
    3. org.apache.kafka.clients.NetworkClient.initiateConnect(NetworkClient.java:394)
    4. org.apache.kafka.clients.NetworkClient.maybeUpdateMetadata(NetworkClient.java:380)
    5. org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:174)
    6. org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:175)
    7. org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:115)
    7 frames
  3. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:744)
    1 frame