2i indexes and keys request inconsistencies

Matthew Von-Maszewski matthewv at basho.com
Tue Mar 8 14:21:45 EST 2016

Is the database being actively modified during your queries?  

Queries can lock down a "snapshot" within leveldb.  The query operation can return keys that existed at the time of the snapshot, but have been subsequently deleted by normal operations.

In such a case, the query is correct in giving you the key and the 404 afterward is also correct.  They represent two different versions of the database over time.

Not sure if this is a valid scenario for you or not.


> On Mar 8, 2016, at 1:22 PM, Alexander Popov <mogadanez at gmail.com> wrote:
> Noticied that sometimes 2i query and all keys requesrs returns extra records ~2% of all records.
> When call this items by get request after,  it returns 404 and after that key stops to returns in 2i and keys requests.
> Does it normally or my database is corrupted?
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20160308/0f8c08fd/attachment-0002.html>

More information about the riak-users mailing list