Hi, we are using mongosync to migrate data from one cluster to another cluster.
We have gone through the process and the data migrated fine and finally we committed everything.
curl localhost:27182/api/v1/commit -XPOST --data '{ }'
The mongosync is now in the following state:
curl localhost:27182/api/v1/progress -XGET
{"progress":{"state":"COMMITTED","canCommit":false,"canWrite":true,"info":"commit completed","lagTimeSeconds":0,"collectionCopy":{"estimatedTotalBytes":39744723179,"estimatedCopiedBytes":39744864710},"directionMapping":{"Source":"cluster0: mongo.acme.com:27017","Destination":"cluster1: mongo.acme-staging.com:27017"},"mongosyncID":"coordinator","coordinatorID":"coordinator"}}
Now that we know this works, we want to continue the process after it has been commited, since commiting, new data has been incoming and we want to fetch that new data (preferably without having to refetch everything again is that possible?).
Now we would like to continue and keep on syncing data, how do we “resume” or “start” the process again and continue fetching new data.
Trying to “start” or “restume” again using the api does not work
{"success":false,"error":"InvalidStateTransition","errorDescription":"Invalid state transition, expected Current State PAUSED, current State: COMMITTED, target State: RUNNING"}
{"success":false,"error":"InvalidStateTransition","errorDescription":"Invalid state transition, expected Current State IDLE, current State: COMMITTED, target State: RUNNING"}
We also tried starting the mongosync web server again but it knows its already in a commited state.