We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In what version(s) of Spring for Apache Kafka are you seeing this issue?
2.8.6 (latest)
Describe the bug
The current documentation for Spring Kafka references setAckOnError method that was probably removed earlier:
https://docs.spring.io/spring-kafka/docs/current/reference/html/#default-eh
@Bean public ConcurrentKafkaListenerContainerFactory<String, String> kafkaListenerContainerFactory() { ConcurrentKafkaListenerContainerFactory<String, String> factory = new ConcurrentKafkaListenerContainerFactory(); factory.setConsumerFactory(consumerFactory()); factory.getContainerProperties().setAckOnError(false); factory.getContainerProperties().setAckMode(AckMode.RECORD); factory.setCommonErrorHandler(new DefaultErrorHandler(new FixedBackOff(1000L, 2L))); return factory; }
I couldn't find it in the latest source version:
https://github.com/spring-projects/spring-kafka/blob/main/spring-kafka/src/main/java/org/springframework/kafka/listener/ContainerProperties.java
Expected behavior
Usage of this method should be removed from the documentation.
The text was updated successfully, but these errors were encountered:
There's one more code block in the documentation that fails to compile:
DeadLetterPublishingRecoverer recoverer = new DeadLetterPublishingRecoverer(template, (r, e) -> { if (e instanceof FooException) { return new TopicPartition(r.topic() + ".Foo.failures", r.partition()); } else { return new TopicPartition(r.topic() + ".other.failures", r.partition()); } }); ErrorHandler errorHandler = new DefaultErrorHandler(recoverer, new FixedBackOff(0L, 2L));
It seems to me that ErrorHandler should be replaced with CommonErrorHandler here.
Sorry, something went wrong.
c9b74e1
GH-2286: Doc Fixes
9248d83
Resolves #2286 Remove `ackOnError` and fix error handler type.
5101b17
a53af2e
Thanks! Back-ported to affected branches.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
In what version(s) of Spring for Apache Kafka are you seeing this issue?
2.8.6 (latest)
Describe the bug
The current documentation for Spring Kafka references setAckOnError method that was probably removed earlier:
https://docs.spring.io/spring-kafka/docs/current/reference/html/#default-eh
I couldn't find it in the latest source version:
https://github.com/spring-projects/spring-kafka/blob/main/spring-kafka/src/main/java/org/springframework/kafka/listener/ContainerProperties.java
Expected behavior
Usage of this method should be removed from the documentation.
The text was updated successfully, but these errors were encountered: