apache / apache/rocketmq-client-python
cpu high load with no exist group
- 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ả
consumer cause high cpu load。
### high load code:
```
consumer = PushConsumer(group) # rocketmq group is not exist
consumer.set_namesrv_addr(address)
consumer.subscribe(topic=topic, callback=callback)
consumer.start()
while True:
time.sleep(3600)
```
**this code run with no exception , no warning hit。**
top monitor result here:
Hướng dẫn đóng góp
Hướng nghiên cứu
Reproduce the reported PushConsumer example with a RocketMQ group that does not exist and observe CPU usage, warnings, and exceptions. Start by tracing the PushConsumer.start() entry point and the consumer's handling of the missing group; done means the missing-group condition no longer causes sustained high CPU and its behavior is clearly reported.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- backend, distributed-systems
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100