norgepaul / DelphiKafkaClient

Apache Kafka Client for Delphi
MIT License
66 stars 30 forks source link

Subscribing to topics using regex/wildcards seems to not work #4

Open Gambradan opened 3 years ago

Gambradan commented 3 years ago

When specifying a topic name to subscribe to (in TKafkaFactory.NewConsumer), regex wildcards do not work (^* or anything else).

rd_kafka_subscribe description says that

 * Wildcard (regex) topics are supported:
 * any topic name in the \p topics list that is prefixed with \c \"^\" will
 * be regex-matched to the full list of topics in the cluster and matching
 * topics will be added to the subscription list.

However, specifying any wildcards for it and calling it does not seem to work either.

Maybe there is some special regex string handling required?

Gambradan commented 2 years ago

Issue can be resolved by upgrading librdkafka DLL to a newer version.