pinxiong commented on issue #8689: URL: https://github.com/apache/dubbo/issues/8689#issuecomment-917523439
> 翻看一下github构建日志,有一个值得注意的地方是ubuntu构建日志很少出现超时,大部分都是40分钟左右就完成了,但是windows2019构建日志出现的超时越来越频繁,虽然超时和UT代码自身缺陷、AfterEach释放全局资源与dubbo资源生命周期管理不匹配有关,但是为什么ubuntu执行就很少出问题呢? > 现在基本定位导致github构建超时的代码就是countdownlatch.await()这条代码,严格来说单元测试代码里不应该出现无限等待的代码,await要带上超时时间,以避免万一出了问题把构建job直接hang掉。 > 同样的代码为什么ubuntu上和windows2019执行差异这么大,是不是CountDownLatch机制在两个操作系统上实现的机制存在差异? Maybe you're right! Anyway, it's always right to have a timeout when using `CountDownLatch#await` Now, I have raised a new feature to build `dubbo-mock` module I've mentioned above + repo: https://github.com/pinxiong/dubbo/tree/mock-module + branch: `mock-module` Would you like to contribute with me? -- 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-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org