rushsky518 opened a new issue #1776: When enableMsgTrace is true, two MQClientInstance objects are created URL: https://github.com/apache/rocketmq/issues/1776 org.apache.rocketmq.client.trace.AsyncTraceDispatcher#start ````java public void start(String nameSrvAddr, AccessChannel accessChannel) throws MQClientException { if (isStarted.compareAndSet(false, true)) { traceProducer.setNamesrvAddr(nameSrvAddr); // instanceName is not pid, so a new MQClinetInstance will be crated traceProducer.setInstanceName(TRACE_INSTANCE_NAME + "_" + nameSrvAddr); traceProducer.start(); } this.accessChannel = accessChannel; this.worker = new Thread(new AsyncRunnable(), "MQ-AsyncTraceDispatcher-Thread-" + dispatcherId); this.worker.setDaemon(true); this.worker.start(); this.registerShutDownHook(); } ```` InstanceName is not pid, and a new MQClinetInstance will be crated.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
