This is the bucket conf: gfrison@gfw:~$ curl http://localhost:8098/riak/user {"props":{"name":"user","n_val":3,"allow_mult":false,"last_write_wins":false,"precommit":[],"postcommit":[],"chash_keyfun":{"mod":"riak_core_util","fun":"chash_std_keyfun"},"linkfun":{"mod":"riak_kv_wm_link_walker","fun":"mapreduce_linkfun"},"old_vclock":86400,"young_vclock":20,"big_vclock":50,"small_vclock":10,"r":"quorum","w":"quorum","dw":"quorum","rw":"quorum"}}
the server is single instance, the configuration is the default, no changes. I store the object as: rc.store(ob, new StoreMeta(1, 1, true)) w=1,dw=1,returnbody=true Can you help me? Giancarlo Frison On Wed, Aug 31, 2011 at 4:01 PM, Jonathan Langevin < jlange...@loomlearning.com> wrote: > That could occur, depending on how many nodes are in your cluster, what > your r/w/dw settings are set to when fetching the object, how soon after > storing you attempt to fetch. > What is your configuration? i.e. - how many nodes in your cluster, what > settings are you using for reading & writing to Riak (r/w/dw, etc), what are > your bucket settings set to? > > I'm not advanced enough to help, but that info should hopefully help the > others on the list ;-) > * > > <http://www.loomlearning.com/> > Jonathan Langevin > Systems Administrator > Loom Inc. > Wilmington, NC: (910) 241-0433 - jlange...@loomlearning.com - > www.loomlearning.com - Skype: intel352 > * > > > On Wed, Aug 31, 2011 at 9:29 AM, Giancarlo Frison <gfri...@chelab.com>wrote: > >> Hi all, >> >> Sometimes happen that storing object with PB client doesn't work, the >> snippet is: >> >> IRiakObject ob = >> RiakObjectBuilder.newBuilder(bucket,key).withContentType("application/json").withValue(json).build(); >> return rc.store(ob, new StoreMeta(1, 1, true)).getVclock().getBytes(); >> >> below it is the snoop of storing action. As you can see the riak server is >> invoked by the client and return the object: >> >> T 127.0.0.1:52015 -> 127.0.0.1:8087 [AP] >> ..... >> .user..gfrison".. >> >> G{"name":"Giancarlo","id":"gfrison","password":"pwd","surname":"frison"}..application/json;charset=utf-82" >> .eclass-general_domain..User..iof(.0.8. >> ## >> T 127.0.0.1:8087 -> 127.0.0.1:52015 [AP] >> ..... >> .. >> >> G{"name":"Giancarlo","id":"gfrison","password":"pwd","surname":"frison"}..application/json;charset=utf-8*.4fXUimzXj3g0ukJHcpuxm32" >> .eclass-general_domain..User..iof8.....@ >> ..).*k.a```.`..R,..E..L..y....W..A....L. >> ?..g.. >> >> >> but when I try to get such object, I got not found: >> >> gfrison@ttw:~$ curl http://localhost:8098/riak/user/gfrison >> not found >> >> Have you any hint on it? >> >> thanks! >> >> >> >> Giancarlo Frison >> @gfrison >> >> >> _______________________________________________ >> 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