I keep seeing Synchronization between Atlas and Device Sync has been stopped, due to error: non-recoverable error processing event: dropping namespace ns='xxx' being synchronized with Device Sync is not supported. Sync cannot be resumed from this state and must be terminated and re-enabled to continue functioning. in my dashboard, yet my devices keep syncing just fine (I’m using the Shared plan)
I wonder if this is related to me using the free plan as clearly the sync is working.
Also, when I try to view Collections, none of the data shows up. It’s pretty weird.
Hi. You are running into the issue that the error describes. Sync really exists in 2 places:
When you drop collections, the sync to/from mongodb (as described in the error message) stops because we cannot support that. Sync between devices will continue to work, but as you point out the sync to MongoDB will not work anymore until you terminate and re-enable sync (this has nothing to do with the free plan)
Right now I’m prototyping and playing a lot with the schemas so that kinda explains. Not sure what’s the best way to ‘restart’ everything. So far I use the web interface to delete the schema, drop all the tables, kill all sessions from my devices, even disable sync/delete users from the App Users page after any significant changes, but the errors keep coming back, sometimes instantly.
How do I, in Dev mode, make sure this error doesn’t come back? If you can point me to any resources for migration in production that’d be very useful too.
As per Tyler’s comment here are some conditions that require a Termination of Sync including the dropping of a collection.
Clicking restart sync in the banner will not work in these cases.
Note that the steps I mentioned in the link you provided is only required in the context if terminating sync by itself does not resolve the issue for some reason. You should not need to drop __realm_sync every time since the termination process should do this automatically.