You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#656Fixes#657
Previously, after a rollback, we only performed a `seek` on the failed record.
We need to seek for all unprocessed records.
Also, when no error handler was provided, and using a batch listener, the
offsets were added to `acks` and incorrectly committed. (#657).
Also, if a `ContainerAwareErrorHandler` "handles" the error, the offsets weren't
committed.
Enhance the tests to verify full seeks.
Add a new test to verify the batch listener doesn't commit after a roll back.
**cherry-pick to 2.1.x, 2.0.x** I will backport to 1.3.x after review.
* Some simple polishing
# Conflicts:
# spring-kafka/src/main/java/org/springframework/kafka/config/AbstractKafkaListenerContainerFactory.java
# spring-kafka/src/test/java/org/springframework/kafka/listener/TransactionalContainerTests.java
# src/reference/asciidoc/whats-new.adoc
# Conflicts:
# spring-kafka/src/main/java/org/springframework/kafka/listener/AbstractMessageListenerContainer.java
# spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java
# src/reference/asciidoc/kafka.adoc
# src/reference/asciidoc/whats-new.adoc
* Resolve errors for code which doesn't exist yet
Copy file name to clipboardExpand all lines: spring-kafka/src/test/java/org/springframework/kafka/listener/ConcurrentMessageListenerContainerTests.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -514,7 +514,7 @@ public void testAckOnErrorRecord() throws Exception {
0 commit comments