Riak Java client not returning deleted sibling

Brian Roach roach at basho.com
Thu Oct 3 12:20:20 EDT 2013


Daniel -

Yeah, that is the case. When the ability to pass fetch/store/delete
meta was added to DomainBucket way back when it appears that was
missed.

I'll add it and forward-port to 1.4.x as well and cut new jars. Should
be avail by tomorrow morning at the latest.

Thanks!
- Roach

On Thu, Oct 3, 2013 at 9:38 AM, Daniel Iwan <iwan.daniel at gmail.com> wrote:
> Hi I'm using Riak 1.3.1 and Java client 1.1.2
>
> Using http and curl I see 4 siblings for an object one of which has
> X-Riak-Deleted: true
> but when I'm using Java client with DomainBucket my Converter's method
> toDomain is called only 3 times.
>
> I have set the property
>
> builder.returnDeletedVClock(true);
>
> on my DomainBuilder which I keep reusing for all queries and store
> operations (I guess that's good practice btw.?)
>
>
> I run that under debugger and it seems raw client sees 4 siblings but passes
> over only 3 due to bug (I think) in DomainBucket.fetch() method which should
> have
>
>         if (fetchMeta.hasReturnDeletedVClock()) {
>
>             so.returnDeletedVClock(fetchMeta.getReturnDeletedVClock());
>
>         }
>
> at the end, as store() method has.
>
> Could you confirm or I'm I completely wrong?
>
>
> Regards
>
> Daniel
>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>




More information about the riak-users mailing list