sg-replicate is not replication _sync documents

45 views
Skip to first unread message

arihant rk

unread,
May 11, 2016, 3:04:50 AM5/11/16
to Couchbase Mobile
sg-replicate is excluding _sync documents, reason might be _sync:seq will have conflicts as it is common in both syncgateway instances. but what is the significance of removing the "_" documents from replication.
 in this case, all user documents are not replicated.

below are the sequence of steps are done only for replication from sync1 to sync2
1. created user in sync1 and created session which are not replicated to sync2
2. inserted documents in sync1 and all documents are replicated to sync2 
In this case if i want to access the documents fro sync2 , i ned to create the same user in sync2 ,session and access it.
This will be helpful if used documents are not changing..

but what if the user deleted or removed access from docs which will not replicated to sync2.

can anyone explain what is the significance of excluding user douments replication.

Jens Alfke

unread,
May 11, 2016, 3:21:28 AM5/11/16
to mobile-c...@googlegroups.com
On May 10, 2016, at 11:04 PM, arihant rk <ark...@gmail.com> wrote:

sg-replicate is excluding _sync documents, reason might be _sync:seq will have conflicts as it is common in both syncgateway instances. but what is the significance of removing the "_" documents from replication.

Those aren’t documents (at the Couchbase Mobile level), just metadata that’s stored in the bucket.

 in this case, all user documents are not replicated.

I don’t think users are supposed to be replicated by sg-replicate, but I don’t know for sure because I don’t work on sg-replicate. Maybe Andy or Traun can chime in?

—Jens

Traun Leyden

unread,
May 11, 2016, 11:31:45 AM5/11/16
to mobile-c...@googlegroups.com
Yeah, it's a known limitation of sg-replicate that it doesn't sync user documents.

I don't know what the plan is for that -- I filed a ticket to track the conversation:



--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/42D43D03-C9F7-4167-9191-B6E30407627C%40couchbase.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages