When there are no tasks in CDC, will TiKV generate change logs? If so, will they be sent to the CDC component?

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

Original topic: cdc没有任务的时候,tikv会生成变更日志吗?如果有会发送到cdc组件吗?

| username: 江湖故人

Which physical file corresponds to the change logs?

| username: WalterWj | Original post link

Even if there are no tasks in CDC, the TiKV changelog will still be generated.
Whether it reaches CDC depends on whether CDC is subscribed or not. Without tasks, there should be no subscription.
The changelog in TiKV corresponds to the physical file, which is the WAL (Write-Ahead Logging) file. I’m not exactly sure which one it is :thinking:.

| username: 江湖故人 | Original post link

Got it, that should be TiKV’s rocksdb.wal-dir.
The TiCDC node also has a redo configuration storage, which should correspond to it.

| username: WalterWj | Original post link

The default value for the RocksDB WAL directory is empty, and I couldn’t find the WAL subdirectory. I’m not sure where it is stored by default.

The redo logs in TiCDC are generated by CDC for transaction consistency. This is unrelated to TiKV.

| username: system | Original post link

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