Skip to content

Commit b0c7fa8

Browse files
GH-2184 KafkaBackOffException logged as ERROR
Fixes #2184
1 parent 771c612 commit b0c7fa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ protected RecoveryStrategy getRecoveryStrategy(List<ConsumerRecord<?, ?>> record
159159
else {
160160
this.logger.error(ex, () -> "Recovery of record ("
161161
+ KafkaUtils.format(records.get(0)) + ") failed");
162-
this.failureTracker.getRetryListeners().forEach(rl ->
163-
rl.recoveryFailed(records.get(0), thrownException, ex));
164162
}
163+
this.failureTracker.getRetryListeners().forEach(rl ->
164+
rl.recoveryFailed(records.get(0), thrownException, ex));
165165
}
166166
return (rec, excep, cont, consumer) -> NEVER_SKIP_PREDICATE.test(rec, excep);
167167
}

0 commit comments

Comments
 (0)