[Enhancement] Validation of subscription names in the Pulsar broker #23614
Labels
type/enhancement
The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Search before asking
Motivation
Currently, for resources like tenants, namespaces, topics the Pulsar broker will do some validation on the naming to ensure a certain format: https://github.com/apache/pulsar/blob/master/pulsar-common/src/main/java/org/apache/pulsar/common/naming/NamedEntity.java
For subscription names however, there is no validation at all, possibly causing issues in downstream systems.
Solution
Introduce a validation for subscription names, similar to what is already done with
NamedEntity
.Because this might break things for users currently using such names, it should be optional first so users have time to make the necessary changes.
Alternatives
No response
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: