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:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user