georgewilk01 opened a new issue #2033: Python pulsar-client lacks multi-topic 
support
URL: https://github.com/apache/incubator-pulsar/issues/2033
 
 
   #### Expected behavior
   
   According to documentation, post 1.7 API supports multi-topic subscriptions 
via regx and list. 
   
   #### Actual behavior
   
   I am unable to subscribe to a limited list of topics in my namespace using 
python client for pulsar with regx.
   
   #### Steps to reproduce
   
   Post message using command line as follows:
   `bin/pulsar-client produce my-topic.1   --messages "user created"`
   
   Subscribe consumer written in python as follows:
   ```
   import pulsar
   
   msg_address = "pulsar://localhost:6650/" 
   
   client = pulsar.Client(msg_address)
   consumer = client.subscribe('my-topic.*', 'my-subscription')
   
   while True:
       msg = consumer.receive(timeout_millis=30000)
       print("Received message '{}' id='{}'".format(msg.data(), 
msg.message_id()))
       consumer.acknowledge(msg)
   
   client.close()
   ```
   
   #### System configuration
   **Pulsar version**: apache-pulsar-2.0.1-incubating
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to