You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/10/26 08:56:50 UTC

[GitHub] [dubbo-samples] zrlw opened a new issue #383: dubbo-sample-versions测试类结束后未进行重置

zrlw opened a new issue #383:
URL: https://github.com/apache/dubbo-samples/issues/383


   对于master分支而言,很多类都有static boolean类型的destroyed成员,这些成员在destroy之后会被设置为true,如果不重置为false,将会影响下一个测试类。
   比如:
   ```
   2021-10-25T08:02:51.1761445Z Running org.apache.dubbo.samples.version.VersionService2IT
   
   2021-10-25T08:02:51.2184675Z [25/10/21 08:02:44:044 UTC] main  INFO support.AbstractRegistryFactory:  [DUBBO] Close all registries [zookeeper://zookeeper:2181/org.apache.dubbo.registry.RegistryService?application=version-consumer-1&dubbo=2.0.2&id=org.apache.dubbo.config.RegistryConfig&interface=org.apache.dubbo.registry.RegistryService&pid=19&release=2.7.14-SNAPSHOT&timestamp=1635148963028], dubbo version: 2.7.14-SNAPSHOT, current host: 192.168.128.5
   <== VersionService2IT结束时把AbstractRegistryFactory的destroyed标志置为了true
   
   2021-10-25T08:02:51.2262094Z Running org.apache.dubbo.samples.version.VersionService1IT
   <== 开始VersionService1IT
   
   2021-10-25T08:02:51.2442794Z [25/10/21 08:02:45:045 UTC] main  WARN support.AbstractRegistryFactory:  [DUBBO] All registry instances have been destroyed, failed to fetch any instance. Usually, this means no need to try to do unnecessary redundant resource clearance, all registries has been taken care of., dubbo version: 2.7.14-SNAPSHOT, current host: 192.168.128.5
   <== 因为AbstractRegistryFactory的destroyed标志没有重置,所以还是true,导致没有创建新的注册对象,触发后续代码异常
   
   2021-10-25T08:02:51.2446548Z [25/10/21 08:02:45:045 UTC] main ERROR context.TestContextManager: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@1e34c607] to prepare test instance [org.apache.dubbo.samples.version.VersionService1IT@251ebf23]
   2021-10-25T08:02:51.2455671Z org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.dubbo.samples.version.VersionService1IT': Unsatisfied dependency expressed through field 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'versionService': 
   ```


-- 
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@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-samples] zrlw edited a comment on issue #383: dubbo-sample-versions测试类结束后未进行重置

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #383:
URL: https://github.com/apache/dubbo-samples/issues/383#issuecomment-951812844


   #382 does not fix this issue because it was found that the static boolean variable ```destroyed``` is still true after each testing of dubbo-samples-versions, so i reopen this issue, #384 is needed to be considered.


-- 
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@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-samples] zrlw edited a comment on issue #383: dubbo-sample-versions测试类结束后未进行重置

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #383:
URL: https://github.com/apache/dubbo-samples/issues/383#issuecomment-956196627


   
   
   
   https://github.com/apache/dubbo/runs/4066979244?check_suite_focus=true
   2021-11-01
   ```
   [01/11/21 11:20:02:002 UTC] main  INFO bootstrap.DubboBootstrap:  [DUBBO] DubboBootstrap has started., dubbo version: 2.7.14-SNAPSHOT, current host: 192.168.128.5
   [01/11/21 11:20:02:002 UTC] main  WARN support.AbstractRegistryFactory:  [DUBBO] All registry instances have been destroyed, failed to fetch any instance. Usually, this means no need to try to do unnecessary redundant resource clearance, all registries has been taken care of., dubbo version: 2.7.14-SNAPSHOT, current host: 192.168.128.5
   <== the static boolean variable destroyed of AbstractRegistryFactory is still true 
   [01/11/21 11:20:02:002 UTC] main ERROR context.TestContextManager: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@75201592] to prepare test instance [org.apache.dubbo.samples.version.VersionService1IT@1162410a]
   org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.dubbo.samples.version.VersionService1IT': Unsatisfied dependency expressed through field 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'versionService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Add nodeCache listener for path:/dubbo/config/dubbo/org.apache.dubbo.samples.version.api.VersionService:1.0.0:.condition-router
   ```


-- 
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@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-samples] zrlw closed issue #383: dubbo-sample-versions测试类结束后未进行重置

Posted by GitBox <gi...@apache.org>.
zrlw closed issue #383:
URL: https://github.com/apache/dubbo-samples/issues/383


   


-- 
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@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-samples] zrlw commented on issue #383: dubbo-sample-versions测试类结束后未进行重置

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #383:
URL: https://github.com/apache/dubbo-samples/issues/383#issuecomment-956196627


   
   
   
   
   https://github.com/apache/dubbo/runs/4066979244?check_suite_focus=true
   2021-11-01
   ```
   [01/11/21 11:20:02:002 UTC] main  INFO bootstrap.DubboBootstrap:  [DUBBO] DubboBootstrap has started., dubbo version: 2.7.14-SNAPSHOT, current host: 192.168.128.5
   [01/11/21 11:20:02:002 UTC] main  WARN support.AbstractRegistryFactory:  [DUBBO] All registry instances have been destroyed, failed to fetch any instance. Usually, this means no need to try to do unnecessary redundant resource clearance, all registries has been taken care of., dubbo version: 2.7.14-SNAPSHOT, current host: 192.168.128.5
   [01/11/21 11:20:02:002 UTC] main ERROR context.TestContextManager: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@75201592] to prepare test instance [org.apache.dubbo.samples.version.VersionService1IT@1162410a]
   org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.dubbo.samples.version.VersionService1IT': Unsatisfied dependency expressed through field 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'versionService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Add nodeCache listener for path:/dubbo/config/dubbo/org.apache.dubbo.samples.version.api.VersionService:1.0.0:.condition-router
   ```


-- 
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@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-samples] AlbumenJ closed issue #383: dubbo-sample-versions测试类结束后未进行重置

Posted by GitBox <gi...@apache.org>.
AlbumenJ closed issue #383:
URL: https://github.com/apache/dubbo-samples/issues/383


   


-- 
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@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-samples] zrlw edited a comment on issue #383: dubbo-sample-versions测试类结束后未进行重置

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #383:
URL: https://github.com/apache/dubbo-samples/issues/383#issuecomment-951812844


   #382 does not fix this issue.


-- 
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@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-samples] zrlw edited a comment on issue #383: dubbo-sample-versions测试类结束后未进行重置

Posted by GitBox <gi...@apache.org>.
zrlw edited a comment on issue #383:
URL: https://github.com/apache/dubbo-samples/issues/383#issuecomment-951812844


   #382 does not fix this issue, so i reopen it.


-- 
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@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-samples] zrlw commented on issue #383: dubbo-sample-versions测试类结束后未进行重置

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #383:
URL: https://github.com/apache/dubbo-samples/issues/383#issuecomment-961102768


   https://github.com/apache/dubbo/runs/4105942233?check_suite_focus=true
   2021-11-04
   ```
   [04/11/21 02:12:53:053 UTC] main  INFO bootstrap.DubboBootstrap:  [DUBBO] DubboBootstrap has started., dubbo version: 2.7.14-SNAPSHOT, current host: 172.24.0.5
   [04/11/21 02:12:53:053 UTC] main  WARN support.AbstractRegistryFactory:  [DUBBO] All registry instances have been destroyed, failed to fetch any instance. Usually, this means no need to try to do unnecessary redundant resource clearance, all registries has been taken care of., dubbo version: 2.7.14-SNAPSHOT, current host: 172.24.0.5
   <== the static boolean variable destroyed of AbstractRegistryFactory is still true 
   [04/11/21 02:12:53:053 UTC] main ERROR context.TestContextManager: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@5215cd9a] to prepare test instance [org.apache.dubbo.samples.version.VersionService2IT@29b732a2]
   org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.dubbo.samples.version.VersionService2IT': Unsatisfied dependency expressed through field 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'versionService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Add nodeCache listener for path:/dubbo/config/dubbo/org.apache.dubbo.samples.version.api.VersionService:2.0.0:.condition-router
   ```


-- 
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@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-samples] zrlw commented on issue #383: dubbo-sample-versions测试类结束后未进行重置

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #383:
URL: https://github.com/apache/dubbo-samples/issues/383#issuecomment-951812844


   fixed by #382 


-- 
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@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org