You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/02/15 05:46:52 UTC

[GitHub] [rocketmq] rushsky518 opened a new issue #1776: When enableMsgTrace is true, two MQClientInstance objects are created

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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [rocketmq] rushsky518 closed issue #1776: When enableMsgTrace is true, two MQClientInstance objects are created

Posted by GitBox <gi...@apache.org>.
rushsky518 closed issue #1776: When enableMsgTrace is true, two MQClientInstance objects are created
URL: https://github.com/apache/rocketmq/issues/1776
 
 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [rocketmq] duhenglucky commented on issue #1776: When enableMsgTrace is true, two MQClientInstance objects are created

Posted by GitBox <gi...@apache.org>.
duhenglucky commented on issue #1776: When enableMsgTrace is true, two MQClientInstance objects are created
URL: https://github.com/apache/rocketmq/issues/1776#issuecomment-587272657
 
 
   This design was determined after discussion at the time, the purpose is to provide two isolated instances to prevent mutual interference.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services