Expand description
The topic-name rules of Apache Kafka’s org.apache.kafka.common.internals.Topic.
A topic name becomes part of a filesystem path: the partition directory is <log_dir>/<topic>-<partition>. A name that holds a /, or that is . or .., gives a path outside the log directory. validate_topic_name is the one check. Every path that creates a topic, and every path that creates or removes a partition directory from a name, calls it. A name that passes gives a partition directory that is a direct child of the log directory.
The error text is Kafka’s text, because CreateTopics sends it to the client as the error message.
Enums§
- Invalid
Topic Name - Why a topic name is invalid. The display text is the message of Kafka’s
InvalidTopicExceptionfromTopic.validate.
Constants§
- MAX_
TOPIC_ NAME_ LENGTH - Longest topic name Kafka accepts, in UTF-16 code units (
Topic.MAX_NAME_LENGTH).
Functions§
- topic_
names_ collide - Whether
aandbare the same name after.becomes_(Kafka’sTopic.hasCollision). - validate_
topic_ name - Checks
nameagainst Kafka’sTopic.validate, in Kafka’s order.