zrlw edited a comment on issue #9079:
URL: https://github.com/apache/dubbo/issues/9079#issuecomment-950447553


   #8954 尝试在FrameworkModel的addApplication和tryDestroy之间加了互斥锁,貌似也不能解决这个问题。
   如果日志里的 
module[x.y.z]是对应的不同的测试方法,那么每个测试类的测试方法貌似在并行执行,很多集成测试类的方法并行执行都会有问题,比如集成测试dubbo-samples-nacos-override的DemoServiceIT的两个测试方法:
   https://github.com/zrlw/dubbo/runs/3991744097?check_suite_focus=true
   ```
   Running org.apache.dubbo.samples.governance.DemoServiceIT
   [25/10/21 01:27:07:007 UTC] main  INFO deploy.DefaultModuleDeployer:  
[DUBBO] Dubbo module[1.1.0] has been initialized!, dubbo version: 
3.0.4-SNAPSHOT, current host: 172.23.0.4
   <== 启动两个测试方法中的1个?
   [25/10/21 01:27:07:007 UTC] main  INFO deploy.DefaultModuleDeployer:  
[DUBBO] Dubbo module[1.1.1] has been initialized!, dubbo version: 
3.0.4-SNAPSHOT, current host: 172.23.0.4
   <== 同时又启动两个测试方法中的另1个?
   ```
   结果两个方法都将超时时间增加到了6秒?
   ```
   [25/10/21 01:27:12:012 UTC] nacos.client.cachedata.internal.notifier  INFO 
integration.AbstractConfiguratorListener:  [DUBBO] Notification of overriding 
rule, change type is: ADDED, raw config content is:
   ....
   All Consumers that consume the service 
org.apache.dubbo.samples.governance.api.DemoService will increase the timeout 
value to 6000
   <== 方法1加到了6秒?
   [25/10/21 01:27:12:012 UTC] nacos.client.cachedata.internal.notifier  INFO 
integration.AbstractConfiguratorListener:  [DUBBO] Notification of overriding 
rule, change type is: ADDED, raw config content is:
   。。。
   # All Consumers that consume the service 
org.apache.dubbo.samples.governance.api.DemoService will increase the timeout 
value to 6000
   <== 方法2同时也加到了6秒?
   ```
   结果验证超时异常的testWithoutRule方法没有出现超时异常而失败。
   如果我对上述日志内容理解的没有问题,那就是github执行测试类的各个方法不知道什么时候开始并行执行了,但是并行执行显然是有问题的。
   


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