dromara / dromara/dynamic-tp

Rabbitmq线程池无法动态调参

Open
#449 1 comment 0 reactions 0 assignees View on GitHub
optimize
Dominant language
Java
Stars
4.8k
Forks
860
PR merge metrics
No merged PRs in 30d

Description

**首先感谢您使用 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.