DubboConfigEarlyInitializationPostProcessor counted as BeanPostProcessor twice. Cause print log 'is not eligible for getting processed by all BeanPostProcessors' during most spring bean Initialization #9370
Labels
type/bug
Bugs to being fixed
see also #8347
Environment
Steps to reproduce this issue
Provide [GitHub address] to reproduce this issue.
https://github.com/gitchenjh/dubbo-test
Expected Behavior
DubboConfigEarlyInitializationPostProcessor
shuold only counted as BeanPostProcessor once inPostProcessorRegistrationDelegate.registerBeanPostProcessors()
Actual Behavior
DubboConfigEarlyInitializationPostProcessor
counted as BeanPostProcessor twice inPostProcessorRegistrationDelegate.registerBeanPostProcessors()
first time addBeanPostProcessor
counted as BeanPostProcessor twice
DubboConfigEarlyInitializationPostProcessor
has added as BeanPostProcessor intoDefaultListableBeanFactory
, beanFactory.getBeanPostProcessorCount() has counted once, but beanFactory.getBeanNamesForType() counted it againthis.beanPostProcessors.removeAl
will removeDubboConfigEarlyInitializationPostProcessor
this.beanPostProcessors.addAll
will addDubboConfigEarlyInitializationPostProcessor
againso there is only one
DubboConfigEarlyInitializationPostProcessor
instance inDefaultListableBeanFactory.beanPostProcessors
,but beanProcessorTargetCount counted is twiceThe
this.beanFactory.getBeanPostProcessorCount() < this.beanPostProcessorTargetCount
will always be trueso after
BeanPostProcessorChecker
added into DefaultListableBeanFactory.beanPostProcessors,during every spring bean initialization, there will print logThe text was updated successfully, but these errors were encountered: