From f53d41b3c7c3572c1124d280641112d458bf6cf7 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Tue, 5 Apr 2022 15:12:09 -0400 Subject: [PATCH] GH-2208: Add Paragraph to Doc --- spring-kafka-docs/src/main/asciidoc/kafka.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-kafka-docs/src/main/asciidoc/kafka.adoc b/spring-kafka-docs/src/main/asciidoc/kafka.adoc index c74da57a4d..b4ccacca86 100644 --- a/spring-kafka-docs/src/main/asciidoc/kafka.adoc +++ b/spring-kafka-docs/src/main/asciidoc/kafka.adoc @@ -1033,6 +1033,8 @@ This might be used, for example, to access the consumer metrics in the intercept IMPORTANT: You should not execute any methods that affect the consumer's positions and or committed offsets in these interceptors; the container needs to manage such information. +IMPORTANT: If the interceptor mutates the record (by creating a new one), the `topic`, `partition`, and `offset` must remain the same to avoid unexpected side effects such as record loss. + The `CompositeRecordInterceptor` and `CompositeBatchInterceptor` can be used to invoke multiple interceptors. By default, starting with version 2.8, when using transactions, the interceptor is invoked before the transaction has started.