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

Streams needs to handle timeout in initTransactions

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.0, 2.0.1, 2.1.0, 2.2.0, 2.1.1
    • Fix Version/s: 2.2.0, 2.0.2, 2.1.2
    • Component/s: streams
    • Labels:
      None

      Description

      Following on KAFKA-6446, Streams needs to handle the new behavior.

      `initTxn` can throw TimeoutException now: default `MAX_BLOCK_MS_CONFIG` in producer is 60 seconds, so I (Guozhang Wang) think just wrapping it as StreamsException should be reasonable, similar to what we do for `producer#send`'s TimeoutException (https://github.com/apache/kafka/blob/trunk/streams/src/main/java/org/apache/kafka/streams/processor/internals/RecordCollectorImpl.java#L220-L225 ).

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vvcephei John Roesler
                Reporter:
                vvcephei John Roesler
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: