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 2019/02/25 13:14:59 UTC
[GitHub] matansh opened a new issue #3681: Via the python client I am unable
to consume messages with a multi-topic regex consumer
matansh opened a new issue #3681: Via the python client I am unable to consume messages with a multi-topic regex consumer
URL: https://github.com/apache/pulsar/issues/3681
**Describe the bug**
Via the python client I am unable to consume messages with a multi-topic regex consumer
**To Reproduce**
Steps to reproduce the behavior:
1. bring up pulsar standalone instance via docker
```
docker run -it -p 80:80 -p 8080:8080 -p 6650:6650 apachepulsar/pulsar-standalone
```
2. init python client
```python
pulsar_client = pulsar.Client('pulsar://localhost:6650')
```
3. create subscriber
```python
consumer = pulsar_client.subscribe(re.compile('test_.*'), 'sub1')
```
4. create producer
```python
producer = pulsar_client.create_producer('test_1')
```
5. via 2 different python instances / threads / processes attempt to send + read
```python
while Ture:
producer.send(b'test')
```
```python
consumer.receive()
```
6. ERROR: consumer never received any messages
**Expected behavior**
topic "test_1" should be read by subscription "test_.*"
**Desktop (please complete the following information):**
- OS: mac OS (pulsar running in docker)
- pulsar version: latest master from docker (should be 2.2.0?)
- python version: 3.7
- pulsar-client (pip lib) version: 2.3.0.post1 (latest)
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services