kbalitskiy opened a new issue, #9926:
URL: https://github.com/apache/gravitino/issues/9926

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   Why Gravitino disallows '.' in Kafka topic name?
   This not restricted in Kafka.
   While it still can "see" the topics with dot, but doesn't allow to change 
them or create new topics with '.' symbol.
   I couldn't find any RCF for that, but still, 
[here](https://www.confluent.io/learn/kafka-topic-naming-convention/#use-cases-for-kafka-topic-naming-conventions)
 are Confluence recomendations.
   Let's not break standarts, guys. If it's allowed in Kafka, then it should be 
supported, isn't it?
   
   ### Error message and/or stacktrace
   
   kbalitskii@ma2-dev-gravitino02 ~ $ curl -L 
'http://localhost:8090/api/metalakes/ma2_dev/catalogs/ma2-dev-kafka-plaintext/schemas/default/topics'
 \
   > -H 'Content-Type: application/json' \
   > -H 'Accept: application/vnd.gravitino.v1+json' \
   > -d '{
   >   "name": "ma2.KirillBalitskiiTest",
   >   "comment": "This is a topic",
   >   "properties": {
   >     "partition-count": "1",
   >     "replication-factor": "3"
   >   }
   > }'
   {"code":1001,"type":"IllegalArgumentException","message":"Failed to operate 
topic(s) [ma2.KirillBalitskiiTest] operation [CREATE] under schema [default], 
reason [The TOPIC name 'ma2.KirillBalitskiiTest' is illegal. Illegal name: 
ma2.KirillBalitskiiTest]","stack":["java.lang.IllegalArgumentException: The 
TOPIC name 'ma2.KirillBalitskiiTest' is illegal. Illegal name: 
ma2.KirillBalitskiiTest","\tat 
com.google.common.base.Preconditions.checkArgument(Preconditions.java:143)","\tat
 
org.apache.gravitino.catalog.CapabilityHelpers.applyNameSpecification(CapabilityHelpers.java:507)","\tat
   
   ### How to reproduce
   
   Just try to create a Kafka topic with dot in it's name.
   
   ### Additional context
   
   <img width="2558" height="1278" alt="Image" 
src="https://github.com/user-attachments/assets/d65eb946-7231-4648-b2fc-116d2d90ccce";
 />


-- 
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]

Reply via email to