Skip to content

Commit b6b4c1a

Browse files
committed
GH-2363: Fix Class Cast in ErrorHandlerAdapter
Resolves #2363
1 parent 1555f51 commit b6b4c1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public void handleBatch(Exception thrownException, ConsumerRecords<?, ?> data, C
163163
@Override
164164
public void onPartitionsAssigned(Consumer<?, ?> consumer, Collection<TopicPartition> partitions) {
165165
if (this.batchErrorHandler instanceof RetryingBatchErrorHandler) {
166-
((FallbackBatchErrorHandler) this.batchErrorHandler).onPartitionsAssigned(consumer, partitions);
166+
((RetryingBatchErrorHandler) this.batchErrorHandler).onPartitionsAssigned(consumer, partitions);
167167
}
168168
}
169169

0 commit comments

Comments
 (0)