Quickly deleting + recreating item in Riak deletes new item

Matthew Dawson matthew at mjdsystems.ca
Mon Jul 15 15:04:22 EDT 2013

On July 15, 2013 09:55:05 AM Andrew Thompson wrote:
> See this old post:
> http://lists.basho.com/pipermail/riak-users_lists.basho.com/2011-June/004601
> .html
> Effectively, you should be doing a GET before ANY PUT, and using the
> deletedvclock option if you're using PB or checking for the
> X-Riak-VClock header on the 404 response. If you get back a tombstone,
> you should be doing the new PUT with that tombstone so you don't
> accidentally create a sibling with that tombstone.
> Alternatively, turn off allow_mult=false, so you can resolve the
> siblings yourself.
> Andrew
Hi Andrew,

Thanks for the response!  I read through that mailing list thread, and tried 
doing as you said by fetching the object before storing the newly created 
value.  However, I'm still seeing objects that are disappearing.

I'm running with all my buckets having allow_mult set to true, so I'm not sure 
if that would have fixed the issue.  I already resolve conflicts on all 
fetches, so I'm pretty sure I'm not just seeing a single tombstone and 
assuming the data is dead based upon that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20130715/1faa8fd9/attachment.asc>

More information about the riak-users mailing list