cmccabe commented on a change in pull request #11910:
URL: https://github.com/apache/kafka/pull/11910#discussion_r840122353
##########
File path:
metadata/src/main/java/org/apache/kafka/controller/ReplicationControlManager.java
##########
@@ -548,6 +550,15 @@ static void validateNewTopicNames(Map<String, ApiError>
topicErrors,
topicErrors.put(topic.name(),
new ApiError(Errors.INVALID_TOPIC_EXCEPTION,
e.getMessage()));
}
+ if (Topic.hasCollisionChars(topic.name())) {
Review comment:
We shouldn't loop through all topics in the cluster here. This could be
a very long list. Instead, let's keep a separate "potentially colliding names"
set of strings where all the colliding characters are translated to a single
character.
--
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]