zrlw commented on issue #378:
URL: https://github.com/apache/dubbo-samples/issues/378#issuecomment-936529689
github日志显示version的3个集成测试类先后执行顺序是VersionService2IT、VersionServiceStarIT、VersionService1IT,只有VersionServiceStarIT失败了,从日志看VersionServiceStarIT从注册中心拿到了2个服务实例:
```
[05/10/21 02:50:55:055 UTC] main INFO zookeeper.ZookeeperRegistry: [DUBBO]
Notify urls for subscribe url
consumer://192.168.80.5/org.apache.dubbo.samples.version.api.VersionService?application=version-consumer-1&category=providers,configurators,routers&dubbo=2.0.2&init=false&interface=org.apache.dubbo.samples.version.api.VersionService&metadata-type=remote&methods=sayHello&pid=19&release=2.7.14-SNAPSHOT&revision=*&side=consumer&sticky=false×tamp=1633402255073&version=*,
urls:
[dubbo://192.168.80.3:20880/org.apache.dubbo.samples.version.api.VersionService?anyhost=true&application=version-provider&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.samples.version.api.VersionService&metadata-type=remote&methods=sayHello&pid=20&release=2.7.14-SNAPSHOT&revision=1.0.0&service.name=ServiceBean:/org.apache.dubbo.samples.version.api.VersionService:1.0.0&side=provider×tamp=1633402243059&token=11c5796d-1931-4414-a827-a3fda9bbbe25&version=1.0.0,
dub
bo://192.168.80.4:20882/org.apache.dubbo.samples.version.api.VersionService?anyhost=true&application=version-provider2&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.samples.version.api.VersionService&metadata-type=remote&methods=sayHello&pid=20&release=2.7.14-SNAPSHOT&revision=2.0.0&service.name=ServiceBean:/org.apache.dubbo.samples.version.api.VersionService:2.0.0&side=provider×tamp=1633402243665&token=6f21afe9-7e85-4703-a635-c8ccadc30755&version=2.0.0,
empty://192.168.80.5/org.apache.dubbo.samples.version.api.VersionService?application=version-consumer-1&category=configurators&dubbo=2.0.2&init=false&interface=org.apache.dubbo.samples.version.api.VersionService&metadata-type=remote&methods=sayHello&pid=19&release=2.7.14-SNAPSHOT&revision=*&side=consumer&sticky=false×tamp=1633402255073&version=*,
empty://192.168.80.5/org.apache.dubbo.samples.version.api.VersionService?application=version-consumer-1&category=routers&dubbo=2.0.2&init=fals
e&interface=org.apache.dubbo.samples.version.api.VersionService&metadata-type=remote&methods=sayHello&pid=19&release=2.7.14-SNAPSHOT&revision=*&side=consumer&sticky=false×tamp=1633402255073&version=*],
dubbo version: 2.7.14-SNAPSHOT, current host: 192.168.80.5
```
其中192.168.80.4:20882是VersionService2IT使用2.0.0版本的接口,连接在执行VersionService2IT测试时已经建好,192.168.80.3:20880是1.0.0版本的接口,日志显示需要新建连接:
```
[05/10/21 02:50:55:055 UTC] main INFO transport.AbstractClient: [DUBBO]
Start NettyClient /192.168.80.5 connect to the server /192.168.80.3:20880,
dubbo version: 2.7.14-SNAPSHOT, current host: 192.168.80.5
<== 创建连接到1.0.0版本服务
[05/10/21 02:50:55:055 UTC] main INFO config.ReferenceConfig: [DUBBO]
Refer dubbo service org.apache.dubbo.samples.version.api.VersionService from
url
dubbo://192.168.80.5/org.apache.dubbo.samples.version.api.VersionService?application=version-consumer-1&dubbo=2.0.2&init=false&interface=org.apache.dubbo.samples.version.api.VersionService&metadata-type=remote&methods=sayHello&pid=19®ister.ip=192.168.80.5&release=2.7.14-SNAPSHOT&revision=*&side=consumer&sticky=false×tamp=1633402255073&version=*,
dubbo version: 2.7.14-SNAPSHOT, current host: 192.168.80.5
<== master分支ReferenceConfig的createProxy方法
[05/10/21 02:50:55:055 UTC] DubboSaveMetadataReport-thread-1 INFO
zookeeper.ZookeeperMetadataReport: [DUBBO] store consumer metadata. Identifier
: org.apache.dubbo.metadata.report.identifier.MetadataIdentifier@7fd8366a;
definition: {init=false, side=consumer, metadata-type=remote,
application=version-consumer-1, release=2.7.14-SNAPSHOT, methods=sayHello,
sticky=false, dubbo=2.0.2,
interface=org.apache.dubbo.samples.version.api.VersionService, version=*,
revision=*}, dubbo version: 2.7.14-SNAPSHOT, current host: 192.168.80.5
[05/10/21 02:50:55:055 UTC] main INFO
support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker: Bean
'versionService' of type [org.apache.dubbo.common.bytecode.proxy0] is not
eligible for getting processed by all BeanPostProcessors (for example: not
eligible for auto-proxying)
[05/10/21 02:50:55:055 UTC] main INFO
support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker: Bean
'org.apache.dubbo.samples.version.VersionServiceStarIT' of type
[org.apache.dubbo.samples.version.VersionServiceStarIT] is not eligible for
getting processed by all BeanPostProcessors (for example: not eligible for
auto-proxying)
[05/10/21 02:50:55:055 UTC] NettyClientWorker-4-2 INFO
netty4.NettyClientHandler: [DUBBO] The connection of /192.168.80.5:44230 ->
/192.168.80.3:20880 is established., dubbo version: 2.7.14-SNAPSHOT, current
host: 192.168.80.5
<== 已连接1.0.0版本的服务
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.725 s <<<
FAILURE! - in org.apache.dubbo.samples.version.VersionServiceStarIT
```
从日志顺序看,可能是1.0.0版本的连接尚未完成建立就开始测试了,所以只调用了版本2.0.0的服务。
--
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]