zrlw edited a comment on pull request #384:
URL: https://github.com/apache/dubbo-samples/pull/384#issuecomment-952898734


   #382 does not reset the static boolean variable ```destroyed``` of 
AbstractRegistryFactory, look at these logs which was generated today (build 
master branch) :
   https://github.com/apache/dubbo/runs/4022083096?check_suite_focus=true
   ```
   Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.847 s - in 
org.apache.dubbo.samples.version.VersionService2IT
   test(org.apache.dubbo.samples.version.VersionService2IT)  Time elapsed: 0.29 
s
   <== VersionService2IT end
   Running org.apache.dubbo.samples.version.VersionService1IT
   <== VersionService1IT begin
   ...
   [27/10/21 12:36:30:030 UTC] main  INFO bootstrap.DubboBootstrap:  [DUBBO] 
DubboBootstrap has started., dubbo version: 2.7.14-SNAPSHOT, current host: 
192.168.128.5
   [27/10/21 12:36:30:030 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 is still true 
   ...
   [27/10/21 12:36:30:030 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
   <== still cause UnsatisfiedDependencyException
   ```


-- 
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]

Reply via email to