Hi,

I'm confused about the r-value when using the Java API. When I call:

        Bucket bucket =
RiakFactory.pbcClient().createBucket("myBucket").r(2).execute();

I get the following exception:

com.basho.riak.client.bucket.UnsupportedPropertyException: r not supported
for PB
at com.basho.riak.client.bucket.WriteBucket.httpOnly(WriteBucket.java:539)
at com.basho.riak.client.bucket.WriteBucket.r(WriteBucket.java:332)

However, when I run this:

        DomainBucket<MyDomainObject> myDomainBucket =
DomainBucket.builder(RiakFactory.pbcClient().createBucket("myBucket").execute(),
MyDomainObject.class).r(2).build();

and then later call any of the CRUT operations on that domain bucket I get
no exception. Why would I get it on the low-level Bucket API but not on the
high-level DomainBucket API?

Thanks,
Kaspar
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to