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

Consumer.poll() stuck in loop if wrong credentials are supplied

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0.0, 0.10.1.0
    • Fix Version/s: 2.0.0
    • Component/s: clients
    • Labels:
      None

      Description

      With the broker configured to use SASL PLAIN ,
      if the client is supplying wrong credentials,
      a consumer calling poll()
      is stuck forever and only inspection of DEBUG-level logging can tell what is wrong.

      [2016-06-24 12:15:16,455] DEBUG Connection with localhost/127.0.0.1 disconnected (org.apache.kafka.common.network.Selector)
      java.io.EOFException
      at org.apache.kafka.common.network.NetworkReceive.readFromReadableChannel(NetworkReceive.java:83)
      at org.apache.kafka.common.network.NetworkReceive.readFrom(NetworkReceive.java:71)
      at org.apache.kafka.common.security.authenticator.SaslClientAuthenticator.receiveResponseOrToken(SaslClientAuthenticator.java:239)
      at org.apache.kafka.common.security.authenticator.SaslClientAuthenticator.authenticate(SaslClientAuthenticator.java:182)
      at org.apache.kafka.common.network.KafkaChannel.prepare(KafkaChannel.java:64)
      at org.apache.kafka.common.network.Selector.pollSelectionKeys(Selector.java:318)
      at org.apache.kafka.common.network.Selector.poll(Selector.java:283)
      at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:260)
      at org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.clientPoll(ConsumerNetworkClient.java:360)
      at org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.poll(ConsumerNetworkClient.java:224)
      at org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.poll(ConsumerNetworkClient.java:192)
      at org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.awaitMetadataUpdate(ConsumerNetworkClient.java:134)
      at org.apache.kafka.clients.consumer.internals.AbstractCoordinator.ensureCoordinatorReady(AbstractCoordinator.java:183)
      at org.apache.kafka.clients.consumer.KafkaConsumer.pollOnce(KafkaConsumer.java:973)
      at org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:937)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ecomar Edoardo Comar
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: