-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
bugfix init reference dead lock #2053
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2053 +/- ##
============================================
- Coverage 53.05% 53.03% -0.03%
+ Complexity 4953 4951 -2
============================================
Files 559 559
Lines 24892 24894 +2
Branches 4431 4432 +1
============================================
- Hits 13207 13202 -5
- Misses 9662 9667 +5
- Partials 2023 2025 +2
Continue to review full report at Codecov.
|
|
||
//SPI never get from spring bean factory | ||
if (type.isInterface() && type.isAnnotationPresent(SPI.class)) { | ||
ExtensionLoader<T> loader = ExtensionLoader.getExtensionLoader(type); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this case, we should simply return null
since it is SpiExtensionFactory's duty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right, it's not SpringExtensionFactory's duty to find SPI instance.
The code has been modified, please review again |
What is the purpose of the change
#2052 dubbo 整合spring boot 的时候死锁,
Brief changelog
dubbo-config/dubbo-config-spring/org/apache/dubbo/config/spring/extension/SpringExtensionFactory
Verifying this change
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:
[Dubbo-XXX] Fix UnknownException when host config not exist #XXX
. Each commit in the pull request should have a meaningful subject line and body.mvn clean install -DskipTests
&mvn clean test-compile failsafe:integration-test
to make sure unit-test and integration-test pass.