Snow-kal commented on PR #3183: URL: https://github.com/apache/dubbo-go/pull/3183#issuecomment-3811452151
为什么更改 cluster/cluster/failback/cluster_test.go 文件的原因 测试 TestFailbackRetryFailed10Times 失败了。从日志中可以看到: 核心问题: 测试创建了 10 个失败任务,每个任务都需要重试 但任务队列容量太小(只有 1),导致出现 tasklist is too full > 1 警告 队列满了之后,后续的重试任务无法入队,导致测试行为不符合预期 最终测试失败,因为预期的重试次数没有达到 日志中的关键错误: Code 2026-01-28T13:27:05.976Z ERROR failback/cluster_invoker.go:195 Failed retry to invoke the method in the service com.ikurento.user.UserProvider, wait again. The exception: error 2026-01-28T13:27:05.976Z WARN failback/cluster_invoker.go:154 tasklist is too full > 1. 解决方案: 增加队列容量 至20 为什么设置为 20: 10 个初始失败任务 每个任务至少会重试一次,可能会同时存在于队列中 设置为 20 可以确保有足够的缓冲空间 -- 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]
