Hello,

We are having an issue with riak_client:list_keys function.
The thing is that the function returns information about the keys which
were successfully deleted from a bucket. For example, please check
output from our tests below:

(r...@macbook-siden)1> {ok, C} = riak:client_connect('r...@macbook-siden').
{ok,{riak_client,'r...@macbook-siden',<<7,122,127,92>>}}
(r...@macbook-siden)2> O0 = riak_object:new(<<"aaa">>, <<"key1">>, "val1").
{r_object,<<"aaa">>,<<"key1">>,
         [{r_content,{dict,0,16,16,8,80,48,
                           {[],[],[],[],[],[],[],[],[],[],[],[],[],[],...},
                           {{[],[],[],[],[],[],[],[],[],[],[],[],...}}},
                     "val1"}],
         [],
         {dict,1,16,16,8,80,48,
               {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],...},
               {{[],[],[],[],[],[],[],[],[],[],[],[],[],...}}},
         undefined}
(r...@macbook-siden)3> C:put(O0, 2).
ok
(r...@macbook-siden)4> C:list_keys(<<"aaa">>).
{ok,[<<"key1">>]}
(r...@macbook-siden)5> C:delete(<<"aaa">>, <<"key1">>, 2).
ok
(r...@macbook-siden)6> C:get(<<"aaa">>, <<"key1">>, 2).
{error,notfound}
(r...@macbook-siden)7> C:list_keys(<<"aaa">>).
{ok,[<<"key1">>]}

backend = ets
riak 0.9.1

As you can see the key was successfully deleted (as it can be confirmed by
the output from riak_client:get call), but riak_client:list_keys still
reports that the key
exists in the bucket. Is this the intended behavior of did we hit a bug in riak?
Please advise.

Thanks.

-- 
Alexander Zhuravlev

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to