New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracer start failed when starting multiple MqProducer in one process #1188
Comments
I think it is a bug too, but it seems that no one cares about this problem.@duhenglucky ,can you look at this question? Thanks~~ |
@ChaosYjh try to setInstanceName when creating producer,and recommend to create one producer to send different topic messages, and it would be nice if you can proposal a PR to polish this issue. |
@ChaosYjh @kangjiabang We will check this issue in our local enviroment. |
|
@ahuazhu hi,when make release ,thanks |
fixed in the 4.6.1 |
i want to use trace feature in 4.4.0.
when i init two defaultMQProducer , use new DefaultMQProducer(producerId,true);
then i start to send message to test trace, trace not work well。
i find when producer start with trace on,it will produce new AsyncTraceDispatcher,in AsyncTraceDispatcher, it will invoke getAndCreateTraceProducer method.
private DefaultMQProducer getAndCreateTraceProducer(RPCHook rpcHook) { DefaultMQProducer traceProducerInstance = this.traceProducer; if (traceProducerInstance == null) { traceProducerInstance = new DefaultMQProducer(rpcHook); traceProducerInstance.setProducerGroup(TraceConstants.GROUP_NAME); traceProducerInstance.setSendMsgTimeout(5000); traceProducerInstance.setVipChannelEnabled(false); // The max size of message is 128K traceProducerInstance.setMaxMessageSize(maxMsgSize - 10 * 1000); } return traceProducerInstance; }
but the ProducerGroup is same for all trace Producer . when i start two MQProducer ,i will report error like following .
throw new MQClientException("The producer group[" + this.defaultMQProducer.getProducerGroup() + "] has been created before, specify another name please." + FAQUrl.suggestTodo(FAQUrl.GROUP_NAME_DUPLICATE_URL), null);
The text was updated successfully, but these errors were encountered: