Skip to content

Commit a0e2b25

Browse files
committed
Doc Polishing
1 parent db001d4 commit a0e2b25

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-kafka/src/main/java/org/springframework/kafka/listener/RetryingBatchErrorHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
* A batch error handler that invokes the listener according to the supplied
3535
* {@link BackOff}. The consumer is paused/polled/resumed before each retry in order to
3636
* avoid a rebalance. If/when retries are exhausted, the provided
37-
* {@link ConsumerRecordRecoverer} is invoked. If the recoverer throws an exception, or
38-
* the thread is interrupted while sleeping, seeks are performed so that the batch will be
39-
* redelivered on the next poll.
37+
* {@link ConsumerRecordRecoverer} is invoked for each record in the batch. If the
38+
* recoverer throws an exception, or the thread is interrupted while sleeping, seeks are
39+
* performed so that the batch will be redelivered on the next poll.
4040
*
4141
* @author Gary Russell
4242
* @since 2.3.7

src/reference/asciidoc/kafka.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4686,7 +4686,7 @@ As an alternative to the <<retrying-batch-eh>>, version 2.5 introduced the `Reco
46864686
This is now the default error handler for batch listeners.
46874687
The default configuration retries 9 times (10 delivery attempts) with no back off between deliveries.
46884688

4689-
This error handler works in conjunction with the listener throwing a `BatchListenerFailedException` providing the index in the batch where the failure occurred.
4689+
This error handler works in conjunction with the listener throwing a `BatchListenerFailedException` providing the index in the batch where the failure occurred (or the failed record itself).
46904690
If the listener throws a different exception, or the index is out of range, the error handler falls back to invoking a `SeekToCurrentBatchErrorHandler` and the whole batch is retried, with no recovery available.
46914691
The sequence of events is:
46924692

0 commit comments

Comments
 (0)