File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-kafka/src/main/java/org/springframework/kafka/listener Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 6161import org .apache .kafka .common .errors .FencedInstanceIdException ;
6262import org .apache .kafka .common .errors .ProducerFencedException ;
6363import org .apache .kafka .common .errors .RebalanceInProgressException ;
64- import org .apache .kafka .common .errors .RetriableException ;
6564import org .apache .kafka .common .errors .WakeupException ;
6665import org .apache .kafka .common .header .internals .RecordHeader ;
6766
@@ -1330,7 +1329,8 @@ else if (this.syncCommits) {
13301329
13311330 private void commitAsync (Map <TopicPartition , OffsetAndMetadata > commits , int retries ) {
13321331 this .consumer .commitAsync (commits , (offsetsAttempted , exception ) -> {
1333- if (exception instanceof RetriableException && retries < this .containerProperties .getCommitRetries ()) {
1332+ if (exception instanceof RetriableCommitFailedException
1333+ && retries < this .containerProperties .getCommitRetries ()) {
13341334 commitAsync (commits , retries + 1 );
13351335 }
13361336 else {
You can’t perform that action at this time.
0 commit comments