Sync gateway caching documents?

41 views
Skip to first unread message

Christoph Berlin

unread,
Dec 18, 2014, 1:57:14 PM12/18/14
to mobile-c...@googlegroups.com
Hi there again,

I have a question regarding the sync gateway. It seems that the gateway caches documents and I don't understand why. We were able to reproduce the following scenario multiple times:

1) User creates document on local mobile device and syncs it via the gateway
2) Later on we delete this document through the Couchbase Server console
3) When using the mobile device, the sync gateway still delivers this (deleted) document even though it doesn't exist on the server anyway
4) When restarting the sync gateway, the issue gets resolved and the document is not available anymore.

Is that expected? A bug? A feature? A configuration option?

Thanks Christoph

Jens Alfke

unread,
Dec 18, 2014, 2:06:36 PM12/18/14
to mobile-c...@googlegroups.com

On Dec 18, 2014, at 10:57 AM, Christoph Berlin <hoptoawe...@gmail.com> wrote:

2) Later on we delete this document through the Couchbase Server console

Did you modify the gateway's private bucket? That's not allowed and will screw up the gateway's state.

—Jens

Christoph Berlin

unread,
Dec 18, 2014, 2:13:32 PM12/18/14
to mobile-c...@googlegroups.com
No sir :)

I can try the same scenario with a brand new setup if you want. 


--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/Kq6yRipV2Q8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/5148D18A-8080-4BAE-BEA9-3FE2A8EF2B5D%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

ajres

unread,
Dec 18, 2014, 2:19:52 PM12/18/14
to mobile-c...@googlegroups.com


In your step 2:

"2) Later on we delete this document through the Couchbase Server console"

That is modifying the gateways private bucket.

Documents must be deleted through the Sync gateway REST API to be picked up by a running Sync Gateway instance.

Andy


Christoph Berlin

unread,
Dec 18, 2014, 2:23:33 PM12/18/14
to mobile-c...@googlegroups.com
Oh! I wasn't aware of that. I thought you were talking about the _sync data.

Well that's it. Case closed. Merry Christmas 


--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/Kq6yRipV2Q8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchba...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages