milvus-cdc icon indicating copy to clipboard operation
milvus-cdc copied to clipboard

[Bug]: After cdc synchronization is enabled, the source cluster will not synchronize to the target cluster when creating a new database

Open guhezhu01 opened this issue 1 year ago • 8 comments

Current Behavior

After cdc synchronization is enabled, the source cluster will not synchronize to the target cluster when creating a new database

Expected Behavior

No response

Steps To Reproduce

No response

Environment

milvus: 2.4.20 cdc: milvus-cdc-2.0.0-rc4

Anything else?

No response

guhezhu01 avatar Mar 06 '25 07:03 guhezhu01

Another problem is that we are building a milvus cross cluster disaster recovery system, and using milvus backup and cdc to build a backup cluster. When testing the cdc incremental synchronization, it is found that if data is inserted into the source cluster before the cdc task is created, the data added to the source cluster before the creation cannot be synchronized after the cdc synchronization task is enabled.

guhezhu01 avatar Mar 06 '25 07:03 guhezhu01

You can try the latest main branch. In addition, this feature is currently in the testing phase. more detail: https://github.com/zilliztech/milvus-cdc/issues/188#issuecomment-2709610995

SimFG avatar Mar 10 '25 07:03 SimFG

It will be solved later that after the backup synchronization, the data is written before the cdc starts. Is this part of data not synchronized

guhezhu01 avatar Mar 10 '25 07:03 guhezhu01

If you need to back up data, you don't actually need cdc. If you want to create two identical milvus clusters with consistent data, it is recommended to stop writing to source milvus first, then back up the data, restore the data, start cdc, and finally let source milvus work normally.

SimFG avatar Mar 10 '25 07:03 SimFG

But this is a production environment. It is impossible to stop the normal use of the source cluster because of the establishment of a backup cluster

guhezhu01 avatar Mar 10 '25 07:03 guhezhu01

This scenario is mainly to establish a disaster recovery cluster. When the old cluster has problems, you can directly switch to the backup cluster. Or cluster migration

guhezhu01 avatar Mar 10 '25 07:03 guhezhu01

You can try the latest main branch. In addition, this feature is currently in the testing phase. more detail: #188 (comment)

HI @SimFG Is this testing completed?

kish5432 avatar Apr 09 '25 18:04 kish5432

@kish5432 You can try it out, we are currently doing some additional development work

SimFG avatar Apr 10 '25 02:04 SimFG