Giter VIP home page Giter VIP logo

Comments (1)

KamToHung avatar KamToHung commented on June 11, 2024

版本信息

  • Jdk版本:1.8
  • SpringBoot版本:2.1.18
  • DynamicTp版本:1.1.6.1
  • 配置中心版本:/

问题描述

2.7.5以下的dubbo动态线程池似乎无法生效,org.dromara.dynamictp.adapter.dubbo.apache.ApacheDubboDtpAdapter是将DataStore中的线程池替换成了动态线程池 image-20240220094555520 但在dubbo 2.7.5以下的版本, org.apache.dubbo.remoting.transport.dispatcher.WrappedChannelHandler#getExecutorService中并不会通过DataStore获取线程池,而是直接用WrappedChannelHandler中的线程池 image 由于ApacheDubboDtpAdapter中putAndFinalize方法会关闭原始线程池,导致dubbo调用中只能使用SHARED_EXECUTOR image image 在2.7.5及以上版本则不会有上述问题, 因为org.apache.dubbo.common.threadpool.manager.DefaultExecutorRepository#getExecutor获取线程池会通过data获取 image 与dynamictp修改的逻辑一致 image 测试只有两个线程执行 image

解决方法

考虑获取WrappedChannelHandler对象,直接修改WrappedChannelHandler中的executor,我自己有尝试改一版,可以提交下pr一起看看

好,指派给你了

from dynamic-tp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.