Removing deprecated setAckOnError method call (#1082)

Going forward, binder will use the default ack on error settings
in Spring Kafka, which is true by default. If the applicaitons
need to change this behavior, then a custom error handler must
be provided through ListenerContainerCustomizer.

Resolves https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/issues/1079
This commit is contained in:
Soby Chacko
2021-05-24 16:46:26 -04:00
committed by GitHub
parent cb42e80dac
commit 5f4e3eebc5

View File

@@ -709,11 +709,6 @@ public class KafkaMessageChannelBinder extends
if (!extendedConsumerProperties.getExtension().isAutoCommitOffset()) {
messageListenerContainer.getContainerProperties()
.setAckMode(ContainerProperties.AckMode.MANUAL);
messageListenerContainer.getContainerProperties().setAckOnError(false);
}
else {
messageListenerContainer.getContainerProperties()
.setAckOnError(isAutoCommitOnError(extendedConsumerProperties));
}
}
}