Skip to content

Commit

Permalink
GH-2934: Non-Blocking Retries and transactions
Browse files Browse the repository at this point in the history
Fixes: #2934

* Non-Blocking Retries cannot be combined with container transactions

* Update docs in `transactions.adoc` and `retrytopic.adoc`

(cherry picked from commit 3449f8c)
  • Loading branch information
Wzy19930507 authored and spring-builds committed Feb 28, 2024
1 parent 144fa1e commit 5be4711
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ Instead, use a `KafkaTransactionManager` in the container to start the Kafka tra

See xref:tips.adoc#ex-jdbc-sync[Examples of Kafka Transactions with Other Transaction Managers] for an example application that chains JDBC and Kafka transactions.

IMPORTANT: xref:retrytopic.adoc[Non-Blocking Retries] cannot combine with xref:kafka/transactions.adoc#container-transaction-manager[Container Transactions].
When the listener code throws an exception, container transaction commit succeeds, and the record is sent to the retryable topic.

[[kafkatemplate-local-transactions]]
== `KafkaTemplate` Local Transactions

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ Since 2.7 Spring for Apache Kafka offers support for that via the `@RetryableTop

IMPORTANT: Non-blocking retries are not supported with xref:kafka/receiving-messages/listener-annotation.adoc#batch-listeners[Batch Listeners].

IMPORTANT: Non-Blocking Retries cannot combine with xref:kafka/transactions.adoc#container-transaction-manager[Container Transactions].

0 comments on commit 5be4711

Please sign in to comment.