It's the protocol/server that limits the set of properties you can set. https://github.com/basho/riak_kv/blob/1.0/src/riak_kv_pb_socket.erl#L441
https://github.com/basho/riak-erlang-client/blob/1.2.0/src/riakc_pb.erl#L260 https://github.com/basho/riak-erlang-client/blob/1.2.0/src/riakclient.proto#L262 I can see how always returning `ok` is confusing and wasted your time. Sorry about that. I'm not sure why it is the way it is, but I'm sure it just happens to be this way and wasn't the result of any deep thought. On Mon, Sep 26, 2011 at 3:52 AM, Roland Karlsson < [email protected]> wrote: > Is it only the client that limits the settings you can see/set, > or is the RIAK server also ignoring all other settings on the PB > protocol? > > If it is only the client, then it looks fairly easy to fix. > > ...... > > Yeah - I see that not supported settings are simply ignored > in the code. I just wondered why that choice :) I lost some hours > on that choice I can tell you :P > > > /Roland > > > > ----- Original Message ----- > From: "Ryan Zezeski" <[email protected]> > To: "Roland Karlsson" <[email protected]> > Cc: [email protected] > Sent: Friday, September 23, 2011 5:06:16 PM > Subject: Re: Why can I not set all bucket settings with the PB interface > > Roland, > > > You've happen to hit on one of the sore spots of the riakc client. We very > much plan to rectify this but it seems to have eluded us for 1.0. As you > said I think the best alternative is to use the HTTP interface. > > > As for your final question. Taking a quick peek at the code it looks like > it the setbucketreq simply ignores properties it doesn't understand. > > > -Ryan > > > On Fri, Sep 23, 2011 at 10:44 AM, Roland Karlsson < > [email protected] > wrote: > > > Hi Basho, > > With the Erlang riakc client API I can only set two settings for the > bucket. > Why is that? And will it be fixed? > > And if you dont plan to fix it - whats your recommendation for creating a > bucket > with non standard settings? To use the HTTP interface? > > Another question may be why the call riakc_pb:set_bucket returns ok when I > try > to set last_write_wins, which is one of the settings that you cant set. > > > /Roland > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > >
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
