apache / rocketmq-client-go

Apache RocketMQ go client

Home Page:https://rocketmq.apache.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HttpResolver snapshot file will be overwritten and mixed if multiple consumers or producers use different name server domains

twz915 opened this issue · comments

HttpResolver use the same instance name "DEFAULT", so if multiple consumers or producers use different name server domains, the snapshot file will be overwritten and mixed. When the name server domain is unavailable, this can result in consumption or production to the wrong units.

resolver := NewHttpResolver("DEFAULT", nameServerDommain)

// this will change the instance name
dc.option.ChangeInstanceNameToPID()