You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
receiver_queue_size has no effect on partitioned topics, but is allowed #15702
Setting the receiver_queue_size kwarg to subscribe in the Python client has no effect when a partitioned topic is in use.
These docs indicate that this argument is not supported with partitioned topics, but nothing at runtime indicates an invalid argument. If this is an invalid configuration, then it should cause subscribe to throw an error.
Observe that the bug in that issue still manifests.
Expected behavior
If receiver_queue_size does not have any effect when used with a partitioned topic, its presence in a subscribe call for a partitioned topic should raise an error.
If receiver_queue_size does work with partitioned topics, these docs should be updated.
If receiver_queue_size does work with partitioned topics, its interaction with max_total_receiver_queue_size_across_partitions should be documented in the API reference for Pulsar client libraries.
@zbentley The queue size of a partitioned topic consumer will be limited by both the receiver_queue_size and max_total_receiver_queue_size_across_partitions.
As mentioned here apache/pulsar-client-python#190, it's not a receiver queue size-related issue. it's a pulsar's problem with batch message processing. The batch is for improving the throughput, and reduce the CPU overhead, so the broker side will not split the batch.
@codelipenghui I don't think this is affected by batching being enabled or disabled; see my reply to your other comment.
Additionally, when you say:
The queue size of a partitioned topic consumer will be limited by both the receiver_queue_size and max_total_receiver_queue_size_across_partitions
How do those two settings interact? That should be documented. I.e. if I have receiver_queue_size=0 and max_total_receiver_queue_size_across_partitions=10, what is the result? What about 10 and 0? 10 and 10?
Activity
codelipenghui commentedon May 22, 2022
@zbentley The queue size of a partitioned topic consumer will be limited by both the
receiver_queue_sizeandmax_total_receiver_queue_size_across_partitions.As mentioned here apache/pulsar-client-python#190, it's not a receiver queue size-related issue. it's a pulsar's problem with batch message processing. The batch is for improving the throughput, and reduce the CPU overhead, so the broker side will not split the batch.
zbentley commentedon May 22, 2022
@codelipenghui I don't think this is affected by batching being enabled or disabled; see my reply to your other comment.
Additionally, when you say:
How do those two settings interact? That should be documented. I.e. if I have receiver_queue_size=0 and max_total_receiver_queue_size_across_partitions=10, what is the result? What about 10 and 0? 10 and 10?
Additionally, these docs are incorrect; they say:
codelipenghui commentedon May 23, 2022
@zbentley
Yes, looks like the doc is incorrect
Here is the code snippet
For a partitioned topic, not able to set the receiver queue size to 0 as I mentioned here apache/pulsar-client-python#43
zbentley commentedon May 26, 2022
@codelipenghui thanks! Could that min formula be added to the documentation? It's non-obvious at present.
codelipenghui commentedon May 30, 2022
@zbentley Yes, I have added doc-required label, the document team will improve the document.
github-actions commentedon Jun 29, 2022
The issue had no activity for 30 days, mark with Stale label.