Skip to content

Via the python client I am unable to consume messages with a multi-topic regex consumer #3681

Description

@matansh

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
  1. init python client
pulsar_client = pulsar.Client('pulsar://localhost:6650')
  1. create subscriber
consumer = pulsar_client.subscribe(re.compile('test_.*'), 'sub1')
  1. create producer
producer = pulsar_client.create_producer('test_1')
  1. via 2 different python instances / threads / processes attempt to send + read
while Ture:
    producer.send(b'test')
consumer.receive()
  1. 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)

Metadata

Metadata

Labels

docYour PR contains doc changes, no matter whether the changes are in markdown or code files.type/bugThe PR fixed a bug or issue reported a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions