apache / rocketmq

Apache RocketMQ is a cloud native messaging and streaming platform, making it simple to build event-driven applications.
https://rocketmq.apache.org/
Apache License 2.0
21.13k stars 11.64k forks source link

[Bug] The worker thread has been converted into a daemon thread. #8363

Open YanYunyang opened 3 months ago

YanYunyang commented 3 months ago

Before Creating the Bug Report

Runtime platform environment

4.19.90-23-42.v2101.ky10.x86_64

RocketMQ version

5.2.0

JDK Version

openjdk 1.8

Describe the Bug

If a consumer client is created through an HTTP request, LatencyFaultToleranceScheduledThread and MQClientFactoryFetchRemoteConfigScheduledThread will change from a regular thread to a daemon thread

Steps to Reproduce

1.create a daemon thread 2.create and start the consumer client within step1 daemon thread 3.check the status of LatencyFaultToleranceScheduledThread and MQClientFactoryFetchRemoteConfigScheduledThread

What Did You Expect to See?

LatencyFaultToleranceScheduledThread and MQClientFactoryFetchRemoteConfigScheduledThread is daemon thread change to daemon thread

What Did You See Instead?

LatencyFaultToleranceScheduledThread and MQClientFactoryFetchRemoteConfigScheduledThread is daemon thread change to daemon thread

Additional Context

No response

YanYunyang commented 3 months ago

MQClientFactoryScheduledThread too.