You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/05/22 14:21:26 UTC

[GitHub] [pulsar] zbentley commented on issue #15704: With the Python client, receiver_queue_size=0 results in an InvalidConfiguration error, but is documented to work

zbentley commented on issue #15704:
URL: https://github.com/apache/pulsar/issues/15704#issuecomment-1133907534

   @BewareMyPower 
   
   > It's better to show your Python client version and paste your code.
   
   See https://github.com/apache/pulsar/issues/15701; that contains Python/client/etc. version. 
   
   The code I'm using is:
   
   ```
   from pulsar import Client
   import os
   
   TOPIC = 'persistent://chariot1/chariot_ns_sre--heartbeat/chariot_topic_heartbeat'
   SUBSCRIPTION = 'chariot_subscription-heartbeat-heartbeat'
   
   def main():
       client = Client(service_url='pulsar://localhost:6650')
       client.subscribe(
           topic=TOPIC,
           subscription_name=SUBSCRIPTION,
           receiver_queue_size=0,
           consumer_name=f'testconsumer-{os.getpid()}'
       )
   
   if __name__ == '__main__':
       main()
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org