-
Notifications
You must be signed in to change notification settings - Fork 41.3k
Add support for IdlePartitionEventInterval #28290
New issue
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
Conversation
IdlePartitionEventInterval was added, but the value is not retrieved from configuration. Adding support to set the value from configuration.
@pascal-ayotte Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@pascal-ayotte Thank you for signing the Contributor License Agreement! |
Thanks for the pull request, @pascal-ayotte. The changes as currently proposed do not compile as there's no It looks like support for this was added in Spring Kafka 2.7. @garyrussell do you think it makes sense to add a configuration property for this? |
@wilkinsona It's not a commonly used property; I typically recommend setting such properties in some other bean definition... @Bean
SomeOtherBean otherBean(ConcurrentKafkaListenerContainerFactory<?, ?> factory() {
factory.getContainerProperties().set...
...
return someOtherBean;
} There are many such properties; we typically only expose common properties as Boot properties (similar to the earlier discussions about the many Kafka consumer and producer properties). OTOH, in the past, we have added them to Boot's properties on-demand when requested (often via user contributions). |
Thanks, Gary. This one feels a little bit different to me as there's a setter on container factory whereas other additions (such as #19220) have directly mapped one of our properties to a Kafka property. It doesn't sound like you have an objection so I think it makes sense to add this one, particularly given the setter in Spring Kafka. @pascal-ayotte Do you have time to update your proposal to add a |
@wilkinsona I have no objections either way (but, for clarity, the setter is not on the factory, but on the factory's |
@wilkinsona thanks for the feedback and sorry for the delay, I'll look into adding the |
1ca278f
to
902dd0b
Compare
@pascal-ayotte thank you for making your first contribution to Spring Boot. |
IdlePartitionEventInterval was added, but the value is never retrieved from configuration. Adding support to set the value from configuration. No Issue found related to this.