apache / apache/rocketmq-client-python

The default instance names generated for Consumer and Producer may be duplicated.

Đang mở
#151 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
305
Fork
98
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**BUG REPORT**

1. Please describe the issue you observed:

- **What did you do (The steps to reproduce)?**
1. Start Producer and Consumer without setting an instance name (according to the example code).
2. Observe the RocketMQ connection information and notice that the default instance name format is `@8#DEFAULT` where 8 is the PID.
3. When there are multiple Producers and Consumers, especially when running in containers, the PID can repeat, causing instance name duplication.
4. Duplicate instance names can lead to unexpected situations in production and consumption.

- **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.

2. Please tell us about your environment:

- **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

3. Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):
Suggestion: When no instance name is specified, generate a default instance name that includes a timestamp to avoid duplication.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.