BobSong-dev opened a new pull request, #6927: URL: https://github.com/apache/shenyu/pull/6927
Fixes #6886 ## 背景 `RocketMQLogCollectClient` 在初始化成功后会自行注册一个 shutdown hook。 不过它的父类 `AbstractLogConsumeClient` 已经负责统一注册和管理关闭钩子。 子类额外注册的 hook 不会被父类追踪,配置刷新多次后可能不断累积;应用退出时 也可能重复执行 producer 的关闭逻辑。 ## 修改内容 移除 RocketMQ 客户端中重复注册的 shutdown hook,统一使用父类已有的生命周期管理逻辑。 日志发送、配置刷新和正常关闭流程均未改动。 ## 验证 已执行 RocketMQ 日志模块及其依赖模块测试: - Tests run: 23 - Failures: 0 - Errors: 0 - BUILD SUCCESS -- 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]
