frank-montyne opened a new issue #10766:
URL: https://github.com/apache/pulsar/issues/10766
**Describe the bug**
I'm trying to subscribe to any persistent topic in a namespace. Suppose we
have a a tenant 'aTenant' and a namespace 'aNamespace'. I subscribe to all
topics:
pulsarClient.newConsumer(Schema.STRING)
.subscriptionName("allTopics")
.subscriptionType(SubscriptionType.Exclusive)
.consumerName("consumerId")
.topic("persistent://aTenant/aNamespace/.+$")
.messageListener(messageListener)
.subscribe());
The following exception is thrown:
org.apache.pulsar.client.api.PulsarClientException$IncompatibleSchemaException:
Incompatible schema: exists schema type AVRO, new schema type STRING
at
org.apache.pulsar.client.api.PulsarClientException.unwrap(PulsarClientException.java:922)
at
org.apache.pulsar.client.impl.ConsumerBuilderImpl.subscribe(ConsumerBuilderImpl.java:101)
**To Reproduce**
Steps to reproduce the behavior:
Try the above
**Expected behavior**
No exception
**Desktop (please complete the following information):**
- OS: OSX, Linux
- Pulsar 2.7.1, 2.7.2
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]