-
Notifications
You must be signed in to change notification settings - Fork 26.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dubbo_3.1.10因refer MetadataService导致本服务线程池被覆盖,线程数设置失败 #12683
Comments
遇到了相同问题,可解决。 |
@xm101 generateUrlWithoutMetadata 也需要修改一下。 |
generateUrlWithoutMetadata方法在注册中心获取不到meta相关信息时调用,就我遇到的这个问题而言,因为这里没有来自注册中心的属性,就不存在覆盖问题 |
The thread pool problem of MetadataService has been fixed in version 3.2 |
Already fixed in #11936 |
|
或者这么说吧,我们使用的是3.1.10,已经包含了11524 ConfigurableMetadataServiceExporter这个最新代码,那个问题我也遇到了,所以从3.1.9升级到了3.1.10,但是仍然遇到了这个新问题,上面是一步步调试和排查的结果,PR不小心点了close |
ok 我大概知道什么问题了,PR 我会重新打开,等测试跑过后合并。不过现在下一个 3.1.x 的版本发布还没有具体的规划时间,只有 3.2.x 会定期(每月)发版 |
Environment
Steps to reproduce this issue
Expected Behavior
预期服务B的服务线程池为FixedThreadPool线程数为200
Actual Behavior
实际服务B的服务线程池为CachedThreadPool
bug调试
org.apache.dubbo.registry.client.metadata.StandardMetadataServiceURLBuilder#getMetadataServiceURLsParams
取到的
存在key:"side":"provider"
org.apache.dubbo.registry.client.metadata.StandardMetadataServiceURLBuilder#generateWithMetadata
这里consumer被覆盖为provider
org.apache.dubbo.common.threadpool.manager.DefaultExecutorRepository#getExecutorKey
导致这里的executorKey错误
org.apache.dubbo.common.threadpool.manager.DefaultExecutorRepository#createExecutorIfAbsent
导致这里覆盖了服务端的线程池
The text was updated successfully, but these errors were encountered: