kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bastien Bouclet (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-7179) No response to INIT_PRODUCER_ID request on handler exception
Date Wed, 18 Jul 2018 12:59:00 GMT
Bastien Bouclet created KAFKA-7179:

             Summary: No response to INIT_PRODUCER_ID request on handler exception
                 Key: KAFKA-7179
                 URL: https://issues.apache.org/jira/browse/KAFKA-7179
             Project: Kafka
          Issue Type: Bug
          Components: core
    Affects Versions: 1.1.0
            Reporter: Bastien Bouclet

We were recently hit by an issue similar to KAFKA-6446 where transactional java producers
would indefinitely block when calling KafkaProducer.initTransactions. We were not able to
identify the root cause of the issue we encountered. Restarting our brokers caused the issue
to disappear.

However when reading the broker source code for the INIT_PRODUCER_ID request we noticed that
there was no code to send an error response if an exception occurs in TransactionCoordinator.handleInitProducerId.
If no response is sent to theĀ INIT_PRODUCER_ID request, the java producer waits indefinitely
in versions < 2.0.0, and waits until a timeout in newer versions.

Is that expected behavior or is that an oversight?

This message was sent by Atlassian JIRA

View raw message