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


   #8954 尝试在FrameworkModel的addApplication和tryDestroy之间加了互斥锁,貌似也不能解决这个问题。
   
看日志是每个测试类的测试方法都在并行执行,很多集成测试类的方法并行执行都会有问题,比如集成测试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秒:
   ```
   All Consumers that consume the service 
org.apache.dubbo.samples.governance.api.DemoService will increase the timeout 
value to 6000
   ```
   导致其中验证超时异常的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