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

Transaction completion may block unnecessarily after abortable error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: None
    • Labels:
      None

      Description

      This was discovered while investigating the delay in `AuthorizerIntegrationTest.testTransactionalProducerTopicAuthorizationExceptionInCommit` which typically takes 35 seconds rather than 5 seconds like most of these other tests in this class. There is an edge case on transaction completion if an AddPartitionsToTxn request fails with an abortable error in which the producer may be left blocking in `NetworkClient.poll` without failing the pending commit and without any pending requests. Ultimately the test case was blocking the full 30s request timeout before failing the transaction.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hachikuji Jason Gustafson
                Reporter:
                hachikuji Jason Gustafson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: