lx20091901 opened a new issue, #10120: URL: https://github.com/apache/dubbo/issues/10120
<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy --> - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate. ### Environment Dubbo version: 3.0.5 Operating System version: macOS Java version: 8 ### Steps to reproduce this issue 1.Provider端设置-Ddubbo.application.register-mode=instance 仅启用应用级注册并启动 2.Consumer端设置自定义线程池参数 dubbo.consumer.threadpool=cached dubbo.consumer.corethreads=5 dubbo.consumer.threads=100 dubbo.consumer.queues=1000 3.Consumer端启动并查看DefaultExecutorRepository.createExecutorIfAbsent()方法中查看consumer端共享的线程池配置 ### Expected Behavior Cousumer端共享的线程池按照自定义的参数生成。 ### Actual Behavior <!-- What actually happens? --> 实际生成的线程池参数是默认的,自定义的参数未生效。 如下图所示,第一个初始化的接口为MetadataService,url在StandardMetadataServiceURLBuilder#build构造过程中缺失可自定义的参数的处理逻辑,导致consumer端共享的portKey为2147483647的线程池为默认的线程池,无法支持自定义参数。  为了证明不是配置的错误,贴上provider双注册的情况下consumer线程池的url信息  3.0.8版本中instance中多加了一个side字段,在3.0.8版本中此问题不会复现,但应该只是凑巧不是修复的思路吧  -- 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]
