zrlw edited a comment on issue #8949: URL: https://github.com/apache/dubbo/issues/8949#issuecomment-930761383
我看了netty的HashedWheelTimer代码并没有修复这个问题。 worker线程执行while循环时,如果有超时任务则直接用worker线程自己去执行,如果执行任务挂住了,那么worker线程也会挂住不动,后面的循环都会一直等着,这样超时机制就会错过正常时间点了。 更新:我昨天给netty提了个PR,netty管理团队答复就是这样的,netty是串行循环通知,在串行循环过程中,每个事件处理的代码都不能阻塞netty的worker线程。我问他们如果有10000个timeout,每个处理耗时都只有10ms,那么串行通知完也要耗时10s,是否合理,然后PR就被关了。 -- 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]
