Hi Daniel, Since Riak 1.0, node id's are used to resolve conflicts in place of client id's. While supplying the client ID won't hurt anything, Riak will ignore it.
You can read more about this here: http://wiki.basho.com/Vector-Clocks.html#More-Information Thanks! Brian Sparrow On Thu, Aug 9, 2012 at 2:45 PM, Daniel Iwan <iwan.dan...@gmail.com> wrote: > I've read somewhere some time ago that each client connecting to Riak > cluster should > have unique id to help with resolving conflicts. Is it still the case and if > yes, what would be a recommended way > of selecting such id? > > I just found in RawClient and in IRiakClient > > > /** > > * If you don't set a client id explicitly at least call this to set > one. It > > * generates the 4 byte ID and sets that Id on the client IE you *don't* > > * need to call setClientId() with the result of generate. > > * > * @return the generated clientId for the client > > */ > > byte[] generateAndSetClientId() throws IOException; > > > > > Would that be a way to go or is it now all automatically resolved via vector > clocks? > > > Daniel > > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com