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

Aborting transaction with pending data should throw non-fatal exception

    XMLWordPrintableJSON

    Details

      Description

      Currently if you try to abort a transaction with any pending (non-flushed) data, the send exception is set to

       KafkaException("Failing batch since transaction was aborted")

      This exception type is generally considered fatal, but this is a valid state to be in – the point of throwing the exception is to alert that the records will not be sent, not that you are in an unrecoverable error state.

      We should throw a different (possibly new) type of exception here to distinguish from fatal and recoverable errors.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nym3r0s Gokul Srinivas
                Reporter:
                ableegoldman A. Sophie Blee-Goldman
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: