arangodb / kube-arangodb

ArangoDB Kubernetes Operator - Start ArangoDB on Kubernetes in 5min
https://arangodb.github.io/kube-arangodb/
Apache License 2.0
225 stars 70 forks source link

Cannot stop arango sync on the outgoing side #1648

Open 4gsim opened 4 months ago

4gsim commented 4 months ago

We are trying to stop the dc2dc synchronisation (sync enabled flag on the arango deployment resource) on the outgoing side without success. We already stopped (aborted) the replication between the two clusters. The problem is in the plan_builder_sync.go file, where the cache.ArangoSync.IsSyncInProgress() is checked. This will always return true on the outgoing side because the state on the agent contains this part: .... "synchronizationState": { "outgoing": { "targets": {} }, "structureVersion": "0.2" }, ... The targets part will never be null or non existent.

ajanikow commented 4 months ago

Hello!

I will check this part, as we have this covered in the tests.

Best Regards, Adam.