-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Topic title validator / error checker? #2095
Comments
Does the Java client do any validation like this? It certainly sounds like it'd be useful... |
No validation happens in the java client. TopicPartition.java: https://github.com/apache/kafka/blob/a73bf5931aaf1510f0efa86bc7d61ff8aab046c2/clients/src/main/java/org/apache/kafka/common/TopicPartition.java#L32 However, it's present in the Scala client |
@dpkp @jeffwidman Are you willing to add this feature? Should someone work on it? |
We do validate topic names in consumer, but not in producer. Should be easy enough to add to producer. |
I had been spending a while debugging issues on a small script causing metadata timeout errors when I discovered that the issue was the result of a leading whitespace character in the topic title. While I was able to (eventually) diagnose and fix the problem, the appearance of the error being server-side led us to believe the problem was one related to permissions and not due to a malformed topic title.
This is a feature request to include a validator for title characters. I can make a method to do this myself if necessary -- I'd just like for cases where the topic title is bad to have an obvious error message for debugging circumstances like these.
The text was updated successfully, but these errors were encountered: