Tiup ctl cdc does not generate temporary directories, or how to safely clean up

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

Original topic: tiup ctl cdc 不生成临时目录,或者如何安全清理

| username: TiDBer_yyy

[Test Environment for TiDB] Testing
[TiDB Version] 5.0.4
[Reproduction Path]

  • Execute to check the capture status, and a temporary directory /tmp/3675747422503961290 is generated each time
    /root/.tiup/bin/tiup ctl:v5.0.4 cdc changefeed list -a
    [Encountered Problem: Phenomenon and Impact]
    Problem:
    The /tmp/ path continuously generates temporary link directories, affecting normal production behavior.
| username: yilong | Original post link

  1. The issue also occurs when testing in version 6.1.0.
  2. What is the specific impact?
| username: tidb菜鸟一只 | Original post link

Is it okay to delete it directly?

| username: 会飞的土拨鼠 | Original post link

This should be Prometheus monitoring data. If deleted, some historical monitoring data will be lost.

| username: TiDBer_yyy | Original post link

Thank you for your reply:
There are too many directories, and the leader cannot accept it.
The specific impact is still due to the excessive number of directories. The specifics are not reflected.

| username: TiDBer_yyy | Original post link

It is possible. Every time the tiup cdc command is executed, an empty directory with a purely numeric name appears.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.