RocketMq使用異常解決記錄

一、生產者創建報錯

The producer group[profile-adjust-limit-producer-group] has been created b
efore, specify another name please.

發送消息報錯:

com.alibaba.rocketmq.client.exception.MQClientException: The producer service state not OK, CREATE_JUST

原因:同一個生產group不能有相同instance
解決:生產者初始化instance配置唯一UUID,保證同一組下所有instance不同

producer.setInstanceName(UUID.randomUUID().toString());
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章