Pat,

On Fri, Sep 14, 2012 at 11:08 AM, Pat Lynch <[email protected]> wrote:
>
>
> So, if I write a key to a cluster and then try to query that key, it may
> not find it unless I retry?  Even if r=2 & w=2 ?  I thought that at least 2
> systems had to have that key (either in memory or disk) for the write to
> have succeeded with those settings?  If I had w=3, would you expect any
> missed keys ??  (note that I didn't try that because I expected performance
> issues).
>

It's important to note that `w` is considered complete once the value is
queued in-memory waiting to be written do disk [1].  A read does not check
the queue but only on-disk data.  The `dw` flag is what you want to know
that the value has made it to disk and can be seen by a read.

-Z

[1]: https://github.com/basho/riak_kv/blob/master/src/riak_kv_vnode.erl#L284
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to