Skip to content
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

Rabbitmq线程池无法动态调参 #449

Open
qbna350816 opened this issue Jul 25, 2024 · 0 comments
Open

Rabbitmq线程池无法动态调参 #449

qbna350816 opened this issue Jul 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@qbna350816
Copy link

首先感谢您使用 DynamicTp,如果使用过程中有任何问题,请按照下述模板反馈问题,建议使用 Markdown 语法

版本信息

  • Jdk版本:1.8.0_411
  • SpringBoot版本:2.3.2.RELEASE
  • DynamicTp版本:1.1.7
  • 配置中心版本:nacos 1.4.0

问题描述

ExecutorService executor = (ExecutorService)ReflectionUtil.getFieldValue(AbstractConnectionFactory.class, "executorService", v);
if (Objects.nonNull(executor) && executor instanceof ThreadPoolExecutor) {
String tpName = this.genTpName(k);
this.enhanceOriginExecutor(tpName, (ThreadPoolExecutor)executor, "executorService", v);
}
通过反射拿到的executor为null,导致无法增强。
文字描述、截图、粘代码方式

  • 配置文件:
  • 代码使用步骤:
  • 报错信息:
  • 猜测可能原因:

复现步骤

  1. xxx
  2. xxx

其他信息

  1. xxx
  2. xxx
@qbna350816 qbna350816 added the bug Something isn't working label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant