-
Notifications
You must be signed in to change notification settings - Fork 26.4k
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
Adjust the scope of the spi extension #8600
Adjust the scope of the spi extension #8600
Conversation
Codecov Report
@@ Coverage Diff @@
## 3.0 #8600 +/- ##
============================================
+ Coverage 62.94% 62.97% +0.03%
Complexity 313 313
============================================
Files 1117 1117
Lines 46811 46811
Branches 7046 7046
============================================
+ Hits 29465 29481 +16
+ Misses 14057 14042 -15
+ Partials 3289 3288 -1
Continue to review full report at Codecov.
|
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.
Good idea! I think we also need to remove the SPI config in resources/META-INF/services/*
.
instance.getPort()))); | ||
instance.getPort())); | ||
Map<String, String> parameters = new HashMap<>(); | ||
parameters.put("registry.listeners", "multipleConfigCenterServiceDiscoveryRegistry"); |
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.
It's better use the constant named SPI_NAME
instead
@@ -25,15 +25,15 @@ | |||
import org.apache.dubbo.registry.client.ServiceDiscoveryRegistry; | |||
import org.apache.dubbo.registry.client.metadata.store.InMemoryWritableMetadataService; | |||
|
|||
@Activate | |||
@Activate(value = "multipleConfigCenterServiceDiscoveryRegistry") |
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.
see above
RegistryConfig registryConfig = new RegistryConfig(String.format("%s://%s:%s", | ||
instance.getType(), | ||
instance.getHostname(), | ||
instance.getPort())); | ||
Map<String, String> parameters = new HashMap<>(); | ||
parameters.put("registry.protocol.listener", "singleConfigCenterExportProvider"); |
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.
see above
@@ -27,7 +27,7 @@ | |||
/** | |||
* The {@link RegistryProtocolListener} for {@link SingleRegistryCenterExportProviderService} | |||
*/ | |||
@Activate(order = 100) | |||
@Activate(order = 100, value = "singleConfigCenterExportProvider") |
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.
see above
# Conflicts: # dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/integration/multiple/servicediscoveryregistry/MultipleRegistryCenterServiceDiscoveryRegistryRegistryServiceListener.java
What is the purpose of the change
Adjust the scope of the spi extension used for testing.
Brief changelog
Verifying this change
Checklist