zrlw commented on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950985548
我在windows机器上的eclipse验证了一下,方法如下:
1. dubbo-samples-version的pom里的dubbo.version改为当前dubbo 3.0分支的3.0.5-SNAPSHOT
2.
从dubbo-samples-basic里copy一个EmbeddedZooKeeper到dubbo-samples-version,修改一下VersionProvider,在启动context前面加上启动zk的代码:
```
new EmbeddedZooKeeper(2181, false).start();
// wait for embedded zookeeper start completely.
Thread.sleep(1000);
```
3. 依次启动VersionProvider,VersionProvider2
4. 然后对dubbo-samples-version执行 run as junit test测试
对比结果如下:
VersionService1IT和VersionService2IT添加了下面的代码,测试就ok:
```
@AfterClass
public static void after() {
DubboBootstrap.reset();
}
```
不添加上述代码,就持续抛异常:
```
main ERROR listener.ServiceInstancesChangedListener: [DUBBO] Failed to load
service metadata, meta type is local, dubbo version: 3.0.5-SNAPSHOT, current
host: x.x.x.x
java.lang.IllegalStateException: DubboProtocol is destroyed
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]