Why You Should Avoid Using '.' in Topic Names in TiCDC Changefeed Configuration Files

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiCDC的changefeed配置文件中Topic为什么尽量不要用’.’

| username: 涂风油精不耽误一库

Question: Why replace ‘.’ with ‘_’?

| username: Meditator | Original post link

It might be to better comply with Kafka’s naming rules.
Kafka’s naming rules:

  • Consists of uppercase and lowercase letters, numbers, ., -, _
  • Cannot be empty, cannot be . or ..
  • Length cannot exceed 249

Although a topic can contain a dot (.), when actually creating it, Kafka will replace the dot (.) with an underscore (_) and store it in ZK. However, if you encounter this situation, there will be a problem: topic.A_B and topic_A.B will eventually report a topic conflict because both will ultimately be stored as topic_A_B.

| username: system | Original post link

This topic will be automatically closed 60 days after the last reply. No new replies are allowed.