Hello
My pull Replicator seems to be getting stuck trying to deal with the _removed flag in a fairly common scenario we meet involving users and their channels.
The scenario is caused by a document being removed from my user’s assigned channels and then at a later stage us clearing/removing the user’s local database and starting the replication from scratch.
In this scenario, there is no local document that needs to be removed, seeing as the document is never downloaded in the first place due to standard channel filtering. During replication the Replicator throws an error : “Got error NotFound” where it’s trying to retrieve the specific revision of the document where the channel was removed from the document.
This user no longer has access to this document (channel permissions) so the server throwing an error is correct but I’m questioning why its being requested at all.
So it looks like the replicator is trying to download the document in order to remove it??
Am I misunderstanding something? Surely the document shouldn’t need to be pulled just in order to delete it. Is there a workaround here? Is the problem in the handling of the flag or in the flag being sent at all in the changes feed for a fresh replication?