-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
In what version(s) of Spring for Apache Kafka are you seeing this issue?
in the latest version 3.2.3
Describe the bug
There is the following warning log when using AnnotationEnhancer at the start of the app:
trationDelegate$BeanPostProcessorChecker : Bean 'groupIdEnhancer' of type [org.example.springkafkaenhancerreproducer.EnhancerConfiguration$$Lambda/0x0000000800332650] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [org.springframework.kafka.config.internalKafkaListenerAnnotationProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
As I know this warning means that BeanPostProcessor uses internalKafkaListenerAnnotationProcessor and Spring had to create internalKafkaListenerAnnotationProcessor before the BeanPostProcessor. That's why, internalKafkaListenerAnnotationProcessor can't be processed by the BeanPostProcessor.
Therefore, it should not cause any issues, but eliminating this warning would be nice.
To Reproduce
- Create
AnnotationEnhanceras described here https://docs.spring.io/spring-kafka/reference/kafka/receiving-messages/kafkalistener-attrs.html - Run the app on Spring Boot 3.2 or 3.3
- There is the following warning message in the logs:
trationDelegate$BeanPostProcessorChecker : Bean 'groupIdEnhancer' of type [org.example.springkafkaenhancerreproducer.EnhancerConfiguration$$Lambda/0x0000000800332650] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [org.springframework.kafka.config.internalKafkaListenerAnnotationProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
Expected behavior
No warning messages in the logs when using AnnotationEnhancer
Sample
I can provide if needed but it should be very easy to reproduce