1) If a server goes down before replication queue is drained then it is possible to get stale data on subsequent get (from a replica). Is it true?
2) Does spymemcached-2.7 support "sync" on replica?
Tue, 11/15/2011 - 21:51
mikew
Offline
Joined: 03/14/2011
Groups:
1. If a server goes down before that data is replicated to another server than you will get stale data.
2. Spymemcached doesn't support sync and won't support this command. We are adding a new command to the server that will allow you check to make sure that an item is replicated or persisted for Couchbase 2.0. We will "provide" support for this command in Spymemcached 2.8 (2.8 is only a developer preview at the moment and doesn't have support for the new command yet). Provide is in quotes because you won't actually use the command directly. What I imagine is that you will have a function like setAndPersist() or setAndReplicate(). These functions will still return Futures but when you call get() on the Future it will block until the item has been persisted or replicated.
1. If a server goes down before that data is replicated to another server than you will get stale data.
2. Spymemcached doesn't support sync and won't support this command. We are adding a new command to the server that will allow you check to make sure that an item is replicated or persisted for Couchbase 2.0. We will "provide" support for this command in Spymemcached 2.8 (2.8 is only a developer preview at the moment and doesn't have support for the new command yet). Provide is in quotes because you won't actually use the command directly. What I imagine is that you will have a function like setAndPersist() or setAndReplicate(). These functions will still return Futures but when you call get() on the Future it will block until the item has been persisted or replicated.
Let me know if you have any other questions.