basho/riak-java-client — Issue #88: Error in delete commands with parameters
Author: nachogiljaldo
Created: 2011-12-27 10:06:58+00:00
State: open

Hi,

I was experiencing some weird problem with the Java client and I think I discovered the reason. The method:

static com.basho.riak.client.raw.http.ConversionUtil.RequestMeta convert(DeleteMeta deleteMeta);

seems to have a bug. This is the code:

static RequestMeta convert(DeleteMeta deleteMeta) {
RequestMeta rm = convert(new FetchMeta(deleteMeta.getR(), deleteMeta.getPr(), null, null, null, null, null,
null));

if (deleteMeta.hasW()) {
rm.setQueryParam(Constants.QP_W, deleteMeta.getW().toString());
}

// More stuff like that,...

// Here it returns null, but I guess it should return rm, because if not, it does not matter which parameters you specified, they will never be given to the Riak server.
return null;
}

Fix is very easy I guess.