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/24 16:28:54 UTC

[GitHub] [dubbo] zrlw removed a comment on issue #9079: [3.0] 新增的GlobalResourcesRepository全局资源管理功能可能和github构建的并行策略有冲突

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


   单元测试也存在类似的问题。github构建默认方式是并行执行UT,当测试类A结束后github的main线程会立即启动测试类B,但是测试A的全局资源可能还在销毁过程中,此时测试类B使用全局资源就会出现各种问题。
   比如 #8954 用了GlobalResourcesRepository的线程池之后的github单元测试结果这样:
   ```
   Error:  Failures: 
   Error:    DefaultFutureTest.interruptSend:158 expected: <null> but was: <org.apache.dubbo.remoting.exchange.support.DefaultFuture@b7a74ac[Not completed]>
   Error:    CloseTimerTaskTest.testClose:70 expected: <true> but was: <false>
   Error:    HeartBeatTaskTest.testHeartBeat:74 expected: <true> but was: <false>
   Error:    ReconnectTimerTaskTest.testReconnect:73 expected: <true> but was: <false>
   ```
   为了支持全局资源管理,我们可能需要将单元测试和集成测试的执行模式改为串行。
   


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