You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/10/14 08:33:20 UTC
[GitHub] [shardingsphere] penghuazhou opened a new issue #13039: "apache-shardingsphere-4.1.1-src-release" can not support etcd?
penghuazhou opened a new issue #13039:
URL: https://github.com/apache/shardingsphere/issues/13039
"apache-shardingsphere-4.1.1-src-release" can not support etcd?
Exception in thread "main" java.lang.RuntimeException: Invalid `org.apache.shard
ingsphere.orchestration.center.RegistryCenterRepository` SPI type `etcd`.
at org.apache.shardingsphere.spi.TypeBasedSPIServiceLoader.newService(Ty
peBasedSPIServiceLoader.java:46)
at org.apache.shardingsphere.orchestration.core.registrycenter.RegistryC
enterRepositoryServiceLoader.load(RegistryCenterRepositoryServiceLoader.java:49)
at org.apache.shardingsphere.orchestration.core.facade.ShardingOrchestra
tionFacade.<init>(ShardingOrchestrationFacade.java:69)
at org.apache.shardingsphere.shardingproxy.Bootstrap.startWithRegistryCe
nter(Bootstrap.java:131)
at org.apache.shardingsphere.shardingproxy.Bootstrap.main(Bootstrap.java
:87)
(END)
--
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
[GitHub] [shardingsphere] sandynz commented on issue #13039: "apache-shardingsphere-4.1.1-src-release" can not support etcd?
Posted by GitBox <gi...@apache.org>.
sandynz commented on issue #13039:
URL: https://github.com/apache/shardingsphere/issues/13039#issuecomment-943218429
It should be supported in `4.1.1`, from docs and source code.
I verified in `EtcdCenterRepositoryTest`, modified some code:
```
static {
NewInstanceServiceLoader.register(RegistryCenterRepository.class);
}
@Before
public void setUp() {
Collection<RegistryCenterRepository> repositories = NewInstanceServiceLoader.newServiceInstances(RegistryCenterRepository.class);
setClient();
setProperties();
}
```
`repositories` has `EtcdCenterRepository` instance.
@penghuazhou have you included maven dependency of `sharding-orchestration-center-etcd`?
--
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