apache / apache/pulsar-client-python

On partitioned topics with the Python client, receiver_queue_size=0 results in an InvalidConfiguration error, but is documented to work

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

Mô tả

**Describe the bug**
Passing `receiver_queue_size=0` to the Python client's `subscribe` method results in a `InvalidConfiguration` exception.

However, [these docs](https://pulsar.apache.org/docs/cookbooks-message-queue/) indicate that a receiver queue size of 0 is supported.

**To Reproduce**
1. With a connected Python client, call `subscribe` on any **partitioned** topic with the `receiver_queue_size` kwarg set to `0`.
2. Observe that an `InvalidConfiguration` error is raised.

**Expected behavior**
A value of 0 should either be supported and documented (is 0 equivalent to 1?), or [these docs](https://pulsar.apache.org/docs/cookbooks-message-queue/) should be updated to reflect that the python client (if not others) do not support values less than 1.

**Environment**
Same as https://github.com/apache/pulsar-client-python/issues/190

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.