You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "kingkh1995 (via GitHub)" <gi...@apache.org> on 2023/10/22 15:26:42 UTC
[PR] fix issue#2014, autowire OneOffJobBootstrap failed. [shardingsphere-elasticjob]
kingkh1995 opened a new pull request, #2306:
URL: https://github.com/apache/shardingsphere-elasticjob/pull/2306
Fixes
[#2014](https://github.com/apache/shardingsphere-elasticjob/issues/2014)
Changes proposed in this pull request:
- **ElasticJobBootstrapConfiguration**
cause of issue:
the bean which is registered in method afterSingletonsInstantiated can't be autowired, because autowire is earlier than afterSingletonsInstantiated which is executed by AutowiredAnnotationBeanPostProcessor.
solution:
OneOffBootStrap need to be register before autowire phase, and AutowiredAnnotationBeanPostProcessor is MergedBeanDefinitionPostProcessor bean, so ElasticJobBootstrapConfiguration need to be a MergedBeanDefinitionPostProcessor bean too, and OneOffBootStrap should be registered after ElasticJobBootstrapConfiguration initialized immediately.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix issue#2014, autowire OneOffJobBootstrap failed. [shardingsphere-elasticjob]
Posted by "kingkh1995 (via GitHub)" <gi...@apache.org>.
kingkh1995 closed pull request #2306: fix issue#2014, autowire OneOffJobBootstrap failed.
URL: https://github.com/apache/shardingsphere-elasticjob/pull/2306
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org