DM: The upstream IP of the synchronization task has changed. Can it be reconfigured to directly start and continue incremental synchronization? (It is still the original instance, only the IP has changed)

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

Original topic: DM: 同步任务上游的IP发生了变化,是否可以重新配置直接start继续增量同步? (还是原来的实例,只是ip没变)

| username: 超7成网友

As mentioned,
the upstream instance needs a network migration, and the IP will change. The overall binlog remains unchanged.
In this case, can the task that is already in the full → incremental phase be directly stopped, then modify the upstream data source configuration, and restart?
I understand that there should be no problem.

| username: 裤衩儿飞上天 | Original post link

After stopping the task, it cannot be restarted.
You can try the following steps:

  1. pause-task
  2. operate-source update
  3. query-status (confirm whether the IP of the data source in the task has changed)
  4. resume-task
| username: lance6716 | Original post link

It should be possible, just make sure the source-id doesn’t change.

| username: Hacker007 | Original post link

“Stop means to halt, and after stopping, you can’t resume the previous task upon restarting. You should pause the task instead.”

| username: 超7成网友 | Original post link

The task name hasn’t changed; there is DM metadata within TiDB. It will restart, right?

| username: Hacker007 | Original post link

Directly starting it will result in an error; you need to modify the task metadata information or delete the metadatabase table.

| username: 超7成网友 | Original post link

I’m a bit confused about this part. I’ve actually performed this operation many times. I stopped a normal task, modified the configuration file (filter rules), and then started the task (without --remove-meta). It started normally, and I didn’t see any issues with the synchronization. :joy: :joy:

| username: Hacker007 | Original post link

What version are you using? I haven’t been keeping up with the iterations of new versions, it might be a new feature in the later versions.

| username: 裤衩儿飞上天 | Original post link

What command is used to stop the task?

| username: 超7成网友 | Original post link

Just use stop-task.

| username: 超7成网友 | Original post link

I’m still using the old version, 2.0.