Open Heng-Bian opened 5 months ago
I am preparing to submit a PR to fix this issue.
For the instance name @8#DEFAULT
, I found that the default instance name generated by rocketmq-client-cpp includes the IP address. The correct format should be 127.0.0.1@8#DEFAULT
. However, under certain complex conditions, the program often cannot obtain the IP address, resulting in the instance name being generated as @8#DEFAULT
, which ultimately leads to name duplication. Therefore, adding a timestamp is still necessary.
BUG REPORT
What did you do (The steps to reproduce)?
@8#DEFAULT
where 8 is the PID.What did you expect to see? Compared to the JAVA RocketMQ client, the JAVA client’s default instance name is generated as
10.4.2.29@29552#17398949282500
which consists of the IP address, PID, and timestamp. This almost avoids instance name duplication.What did you see instead? The instance names are duplicated due to PID repetition when running multiple Producers and Consumers in containers.
What is your OS? Linux amd64
What is your client version? rocketmq-client-python:2.0.0 CPP version: 2.0.0
What is your RocketMQ version? 4.9.8