if kafka cluster is at least 2.5.0 mark txnmngr to bump epoch else mark it as fatal.
(err error)
| 601 | |
| 602 | // if kafka cluster is at least 2.5.0 mark txnmngr to bump epoch else mark it as fatal. |
| 603 | func (t *transactionManager) abortableErrorIfPossible(err error) error { |
| 604 | if t.coordinatorSupportsBumpingEpoch { |
| 605 | t.epochBumpRequired = true |
| 606 | return t.transitionTo(ProducerTxnFlagInError|ProducerTxnFlagAbortableError, err) |
| 607 | } |
| 608 | return t.transitionTo(ProducerTxnFlagInError|ProducerTxnFlagFatalError, err) |
| 609 | } |
| 610 | |
| 611 | // End current transaction. |
| 612 | func (t *transactionManager) completeTransaction() error { |
no test coverage detected