basho/riak-java-client — Issue #71: bug in method com.basho.riak.client.raw.pbc.PBClientConfig.from()
Author: chvitved
Created: 2011-10-25 10:47:13+00:00
State: open

The method com.basho.riak.client.raw.pbc.PBClientConfig.from() return an "empty" PBClientConfig.Builder. It should return a PBClientConfig.Builder build from the parameter provided to the method.

Line 204 should be changed from

return new PBClientConfig.Builder();

to

return b;

But maybe the method is not very relevant. As the method did not work I instead did like this (which i think is more simple)

PBClientConfig.Builder defaultBuilder = new PBClientConfig.Builder().with.......

PBClientConfig node1 = defaultBuilder.withHost("riak01").build();
PBClientConfig node2 = defaultBuilder.withHost("riak02").build();
PBClientConfig node3 = defaultBuilder.withHost("riak03").build();
PBClientConfig node4 = defaultBuilder.withHost("riak05").build();