Skip to content

Commit 3449f8c

Browse files
authored
GH-2934: Non-Blocking Retries and transactions
Fixes: #2934 * Non-Blocking Retries cannot be combined with container transactions * Update docs in `transactions.adoc` and `retrytopic.adoc` **Auto-cherry-pick to `3.1.x`** **Auto-cherry-pick to `3.0.x`**
1 parent 60e3f23 commit 3449f8c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Diff for: spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/transactions.adoc

+3
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ Instead, use a `KafkaTransactionManager` in the container to start the Kafka tra
7979

8080
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.
8181

82+
IMPORTANT: xref:retrytopic.adoc[Non-Blocking Retries] cannot combine with xref:kafka/transactions.adoc#container-transaction-manager[Container Transactions].
83+
When the listener code throws an exception, container transaction commit succeeds, and the record is sent to the retryable topic.
84+
8285
[[kafkatemplate-local-transactions]]
8386
== `KafkaTemplate` Local Transactions
8487

Diff for: spring-kafka-docs/src/main/antora/modules/ROOT/pages/retrytopic.adoc

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ Since 2.7 Spring for Apache Kafka offers support for that via the `@RetryableTop
99

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

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

0 commit comments

Comments
 (0)