poorbarcode opened a new issue, #22032: URL: https://github.com/apache/pulsar/issues/22032
### Search before asking - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar. ### Version `3.0.2.3` ### Minimal reproduce step Broker.conf - `allowAutoTopicCreation`: `true` - `allowAutoTopicCreationType`: `partitioned` - `defaultNumPartitions`:`1` The lastest version Go client - Create a consumer and subscribe `public/default/tp1` - Broker will create a partitioned topic `public/default/tp1` with `1` partition at the step - Create a reader and subscribe `public/default/tp1` - Broker will create a non-partitioned topic `public/default/tp1` Two bugs: - the reader of the Go client should get topic metadata first, then try to subscribe to the partitioned topic. The actual behavior is it subscribes to the `public/default/tp1` as a non-partitioned topic. This bug will be fixed in https://github.com/apache/pulsar-client-go - The Go client should get a not-found error when the reader tries to subscribe to `public/default/tp1` as a non-partitioned topic. This bug is the current issue point. ### What did you expect to see? - ### What did you see instead? - ### Anything else? _No response_ ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
